ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] bug in tmpwm


From: Mike O'Connor
Subject: [RP] bug in tmpwm
Date: Fri, 22 Apr 2005 23:47:49 -0400

If you run the tmpwm command, but pass to it, as an argument, the path
to a wm that doesn't exist, then ratpoison goes into an infinite loop
waiting for the child windowmanager (that wasn't ever started) to exit.

This simple patch fixes it:

-stew


diff -u -r1.253 actions.c
--- src/actions.c   10 Apr 2005 19:27:58 -0000  1.253
+++ src/actions.c   23 Apr 2005 03:19:17 -0000
@@ -4191,7 +4216,7 @@
   do
     {
       child = waitpid (pid, &status, 0);
-    } while (child != pid);
+    } while ((child != -1) && (child != pid));
   /* Enable our SIGCHLD handler */
   set_sig_handler (SIGCHLD, chld_handler);
   /* Some processes may have quit while our sigchld handler was






reply via email to

[Prev in Thread] Current Thread [Next in Thread]