diff options
| -rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -51,6 +51,7 @@ spawn(Arg *arg) | |||
| 51 | 51 | ||
| 52 | if(!arg->cmd) | 52 | if(!arg->cmd) |
| 53 | return; | 53 | return; |
| 54 | /* the double-fork construct avoids zombie processes */ | ||
| 54 | if(fork() == 0) { | 55 | if(fork() == 0) { |
| 55 | if(fork() == 0) { | 56 | if(fork() == 0) { |
| 56 | if(dpy) | 57 | if(dpy) |
