[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D6510A3.90905@aknet.ru>
Date: Wed, 23 Feb 2011 16:50:27 +0300
From: Stas Sergeev <stsp@...et.ru>
To: Linux kernel <linux-kernel@...r.kernel.org>
CC: Oleg Nesterov <oleg@...hat.com>
Subject: [path][rfc] add PR_DETACH prctl command
Hi.
The attched patch adds the PR_DETACH prctl command.
It is needed for those rare but unfortunate cases, where
you can't daemonize your process before creating a thread.
The effect of this command is similar to the fork() and then
exit() on parent, except that:
1. PID does not change
2. Threads are not destroyed
It would be nice to know what people think about such an
approach.
Signed-off-by: stsp@...et.ru
CC: Oleg Nesterov <oleg@...hat.com>
View attachment "pr_detach.diff" of type "text/plain" (5514 bytes)
Powered by blists - more mailing lists