Re: [dwm] patch to not reparent children to init

From: Anselm R Garbe <>
Date: Thu, 6 Nov 2008 19:17:23 +0000

Hi Neale,

2008/11/6 Neale Pickett <>:
> "Donald Chai" <> writes:
>> On Tue, Nov 4, 2008 at 9:09 AM, Neale Pickett <> wrote:
>>> Reparenting everything to init with the double-fork is a nightmare on a
>>> many-user machine, especially when I'm logged in more than once. pstree
>>> becomes useless. This sets up a SIGCHLD handler and only forks once.
>>> Adds 2 SLOC, but surely there's some reason the double-fork is there that
>>> I'm just missing...
>> If you quit dwm, what happens to any programs that you've launched?
> Nothing, the setsid() call makes children process group leaders so they
> don't receive any of the signals the parent gets.

Well, I remember there was a problem with the SIGCHLD signal handler,
I need to recheck with Stevens tomorrow. It might be that this was on
some ancient UNIX though. But the double-fork is definately the most
portable solution.

Kind regards,
Received on Thu Nov 06 2008 - 19:17:23 UTC

This archive was generated by hypermail 2.2.0 : Thu Nov 06 2008 - 19:24:04 UTC