From 43f7e322076141c48f334848dc2654ae7884c611 Mon Sep 17 00:00:00 2001 From: oga Date: Wed, 20 Feb 2008 13:00:18 +0000 Subject: [PATCH] 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! --- app/cwm/calmwm.h | 3 ++- app/cwm/util.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h index 931899730..81ce99155 100644 --- a/app/cwm/calmwm.h +++ b/app/cwm/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.h,v 1.21 2008/02/13 21:48:03 oga Exp $ + * $Id: calmwm.h,v 1.22 2008/02/20 13:00:18 oga Exp $ */ #ifndef _CALMWM_H_ @@ -396,6 +396,7 @@ int dirent_exists(char *); int dirent_isdir(char *); int dirent_islink(char *); int u_spawn(char *); +void exec_wm(char *); void grab_sweep(struct client_ctx *); void grab_drag(struct client_ctx *); diff --git a/app/cwm/util.c b/app/cwm/util.c index b7002e308..94977954a 100644 --- a/app/cwm/util.c +++ b/app/cwm/util.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: util.c,v 1.4 2008/01/16 11:39:20 oga Exp $ + * $Id: util.c,v 1.5 2008/02/20 13:00:18 oga Exp $ */ #include "headers.h" @@ -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) {