use waitpid instead of wait4
authorDavid D. Zuhn <zoo@cygnus>
Wed, 6 Jan 1993 10:26:42 +0000 (10:26 +0000)
committerDavid D. Zuhn <zoo@cygnus>
Wed, 6 Jan 1993 10:26:42 +0000 (10:26 +0000)
gdb/29k-share/udi/udip2soc.c

index cadc074ff84f11810cd5bda4e6905e93e038f2b5..93112efd95c52b1a0067aad152c2847be40f55fd 100644 (file)
@@ -327,7 +327,7 @@ UDIConnect(Config, Session)
                _exit(1);
              }
 
-            if (wait4(pid, &statusp, WNOHANG, NULL))
+            if (waitpid(pid, &statusp, WNOHANG))
              {
                sprintf(dfe_errmsg, "DFE-ipc ERROR: can't exec the TIP");
                dfe_errno = UDIErrorCantStartTIP;