diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-04-08 20:04:55 +0300 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-04-08 20:05:34 +0300 |
| commit | 6e8e735233c17365669d0b50d1ed113562dad9fa (patch) | |
| tree | 5b4926697f6cd68f171732959ec5cc99545f0da8 | |
| parent | 1f05fd874f2871fade322257ab237cd16b43c059 (diff) | |
use err on spawn too
| -rw-r--r-- | monsterwm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c index 841d439..d3e5c87 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -732,9 +732,7 @@ void spawn(const Arg *arg) { if (dis) close(ConnectionNumber(dis)); setsid(); execvp((char*)arg->com[0], (char**)arg->com); - fprintf(stderr, "error: execvp %s", (char *)arg->com[0]); - perror(" failed"); /* also prints the err msg */ - exit(EXIT_SUCCESS); + err(EXIT_SUCCESS, "execvp %s", (char *)arg->com[0]); } /* arrange windows in normal or bottom stack tile */ |
