add exec_wm to calmwm.h, it was missing (bad ian@!)

Also, exec_wm() currenty err()s out if something failed with the exec,
killing the currently running wm. This is bad. Replace the err() with
warn() instead.


from Gleydson Soares, thanks!
This commit is contained in:
oga
2008-02-20 13:00:18 +00:00
parent 7ef6f63557
commit de36e6ec2f
2 changed files with 2 additions and 1 deletions

2
util.c
View File

@ -62,7 +62,7 @@ exec_wm(char *argstr)
*ap = NULL;
setsid();
execvp(args[0], args);
err(1, args[0]);
warn(args[0]);
}
int dirent_isdir(char *filename) {