Commit b548f4b1 authored by Petr Baudis's avatar Petr Baudis
Browse files

compctl --run: Make sure started computation has its own pgrp

parent 9f6b1d32
......@@ -105,6 +105,7 @@ run(int argc, char *argv[])
}
free(line);
setpgrp();
if (setpriority(PRIO_PROCESS, 0, COMPNICE) < 0)
perror("Warning: setpriority()");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment