27639a
Tue Jun 15 15:02:28 2010  James Cameron  <quozl@us.netrek.org>
27639a
27639a
	* pptp.c (open_callmgr): fix usage of status returned by waitpid;
27639a
	it must be wrapped by WEXITSTATUS to shift bits as required.
27639a
27639a
--- pptp.c	2010-06-15 14:35:20.265852021 +0100
27639a
+++ pptp.c	2010-06-15 14:32:00.478100392 +0100
27639a
@@ -475,7 +475,7 @@
27639a
                 }
27639a
                 default: /* parent */
27639a
                     waitpid(pid, &status, 0);
27639a
-                    if (status!= 0)
27639a
+                    if (WEXITSTATUS(status) != 0)
27639a
                         fatal("Call manager exited with error %d", status);
27639a
                     break;
27639a
             }