changeset: 2532:7c6416ab6c85
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Oct 11 19:43:18 2009 -0400
files: cmd/wmii/main.c
description:
Fix small memory leak.
diff -r d1dbe698f445 -r 7c6416ab6c85 cmd/wmii/main.c
--- a/cmd/wmii/main.c Sun Oct 11 06:09:06 2009 -0400
+++ b/cmd/wmii/main.c Sun Oct 11 19:43:18 2009 -0400
@@ -290,10 +290,11 @@
spawn_command(const char *cmd) {
char *shell, *p;
- if((p = pathsearch(getenv("WMII_CONFPATH"), cmd, true)))
- cmd = p;
if(doublefork() == 0) {
+ if((p = pathsearch(getenv("WMII_CONFPATH"), cmd, true)))
+ cmd = p;
+
if(setsid() == -1)
fatal("Can't setsid: %r");
Received on Mon Oct 12 2009 - 00:21:04 UTC
This archive was generated by hypermail 2.2.0 : Mon Oct 12 2009 - 00:24:06 UTC