diff options
Diffstat (limited to '')
| -rw-r--r-- | util.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -47,7 +47,8 @@ spawn(Arg *arg) { | |||
| 47 | 47 | ||
| 48 | if(!arg->cmd) | 48 | if(!arg->cmd) |
| 49 | return; | 49 | return; |
| 50 | /* the double-fork construct avoids zombie processes */ | 50 | /* The double-fork construct avoids zombie processes and keeps the code |
| 51 | * clean from stupid signal handlers. */ | ||
| 51 | if(fork() == 0) { | 52 | if(fork() == 0) { |
| 52 | if(fork() == 0) { | 53 | if(fork() == 0) { |
| 53 | if(dpy) | 54 | if(dpy) |
