aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authoroga2008-02-20 13:00:18 +0000
committeroga2008-02-20 13:00:18 +0000
commita6b094da1c040a70d5cffcd01e1f787ff269387d (patch)
treec376b282b61d1b0df037434956b5a069da8b8b76 /util.c
parentdf52269850ef83d46a7c1fd7fa2562fc1028e663 (diff)
downloadcwm-a6b094da1c040a70d5cffcd01e1f787ff269387d.tar.gz
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!
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index b7002e3..9497795 100644
--- a/util.c
+++ b/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) {