Closed morgant closed 3 years ago
Upon further testing, we're not getting any errors when using using xwf
's "Open With..." option, which is what calls io_system_nice()
(with or without a nice value specified). That said, we should still update it to use setpriority()
instead of nice()
.
That said, xcp
is calling nice()
in main()
and that's where the warning is coming from. That obviously needs to be fixed, as well.
I have updated xcp
to use setpriority()
instead of nice()
.
I have also updated io_system_nice()
to use setpriority()
instead of nice()
.
We get
Warning: nice() failed!
warnings when duplicating files withxcp
.io_system_nice()
inlib-src/io.c
uses nice(3), but getpriority(2) is the POSIX way of doing things, so we should switch to that.