Mercurial > aewl
comparison util.c @ 217:7b63c375d28c
applied grabbing-- and shell_minimal
author | arg@10ksloc.org |
---|---|
date | Mon, 07 Aug 2006 13:40:31 +0200 |
parents | 523df4a3c1c4 |
children | dacd3f3c5823 |
comparison
equal
deleted
inserted
replaced
216:721d5e5de25d | 217:7b63c375d28c |
---|---|
54 if(fork() == 0) { | 54 if(fork() == 0) { |
55 if(dpy) | 55 if(dpy) |
56 close(ConnectionNumber(dpy)); | 56 close(ConnectionNumber(dpy)); |
57 setsid(); | 57 setsid(); |
58 execl(shell, shell, "-c", arg->cmd, NULL); | 58 execl(shell, shell, "-c", arg->cmd, NULL); |
59 fprintf(stderr, "dwm: execl '%s'", arg->cmd); | 59 fprintf(stderr, "dwm: execl '%s -c %s'", shell, arg->cmd); |
60 perror(" failed"); | 60 perror(" failed"); |
61 } | 61 } |
62 exit(0); | 62 exit(0); |
63 } | 63 } |
64 wait(0); | 64 wait(0); |