Skip to content
Snippets Groups Projects
Commit b548f4b1 authored by Petr Baudis's avatar Petr Baudis
Browse files

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

parent 9f6b1d32
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,7 @@ run(int argc, char *argv[]) ...@@ -105,6 +105,7 @@ run(int argc, char *argv[])
} }
free(line); free(line);
setpgrp();
if (setpriority(PRIO_PROCESS, 0, COMPNICE) < 0) if (setpriority(PRIO_PROCESS, 0, COMPNICE) < 0)
perror("Warning: setpriority()"); perror("Warning: setpriority()");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment