lib/autobuild/subcommand.rb in autobuild-1.5.20 vs lib/autobuild/subcommand.rb in autobuild-1.5.21.rc1

- old
+ new

@@ -141,10 +141,12 @@ cwrite.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) pid = fork do cwrite.sync = true begin - Process.setpriority(Process::PRIO_PROCESS, 0, Autobuild.nice) + if Autobuild.nice + Process.setpriority(Process::PRIO_PROCESS, 0, Autobuild.nice) + end if outwrite outread.close $stderr.reopen(outwrite.dup) $stdout.reopen(outwrite.dup)