Re: PROBLEM: fork() & setpriority()

From: Rommer
Date: Mon Jul 11 2005 - 06:16:11 EST


Hello,

Arjan van de Ven wrote:
On Mon, 2005-07-11 at 13:58 +0300, Rommer wrote:

Hello,

I have trouble with fork() and setpriority().
When priority of child process != priority of parent process
and used SIGCHLD handler.
See example.


the example is buggy in that printf() isn't allowed in signal handlers
btw...


ok, you can remove printf() from SIGCHLD handler.

--
Best regards, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/