From fd9f3974b4b1a40ea958925e597686134c5f5099 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 31 Aug 2007 14:28:31 +0000 Subject: 2007-08-31 Martin Hunt * mainloop.c (start_cmd): Set the priority to forked processes back to normal. (system_cmd): Ditto. --- runtime/staprun/mainloop.c | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/staprun/mainloop.c') diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c index 47768e8b..f0952f86 100644 --- a/runtime/staprun/mainloop.c +++ b/runtime/staprun/mainloop.c @@ -111,6 +111,7 @@ void system_cmd(char *cmd) if ((pid = fork()) < 0) { _perr("fork"); } else if (pid == 0) { + setpriority (PRIO_PROCESS, 0, 0); if (execl("/bin/sh", "sh", "-c", cmd, NULL) < 0) perr("%s", cmd); _exit(1); -- cgit