System V versions must call setpgrp() with no arguments, to comply with
authorFred Fish <fnf@specifix.com>
Thu, 24 Oct 1991 09:26:05 +0000 (09:26 +0000)
committerFred Fish <fnf@specifix.com>
Thu, 24 Oct 1991 09:26:05 +0000 (09:26 +0000)
prototyping typically in <unistd.h>.  Otherwise the compile fails, at
least with gcc.

gdb/ChangeLog
gdb/infrun.c

index 56141df123faa3381a9668b11a7b40df7f79e484..33359681b70b942a9aaf34a2815365e9e1f62431 100644 (file)
@@ -1,5 +1,9 @@
 Thu Oct 24 01:32:51 1991  Fred Fish  (fnf at cygnus.com)
 
+       * infrun.c (child_create_inferior): System V versions must call
+       setpgrp() with no arguments, to comply with prototyping typically
+       in <unistd.h>.
+
        * munch: Add support for SVR4 style nm output.
 
        * dbxread.c, mipsread.c symmisc.c, symtab.c:  Remove the object
index 1aea0a2a2c15e87617eb1db70db20a23999a6787..ce7da916fd40f6cf9bc63bea434e88fdda6bcb38 100644 (file)
@@ -534,7 +534,11 @@ child_create_inferior (exec_file, allargs, env)
 
 #ifdef TIOCGPGRP
       /* Run inferior in a separate process group.  */
+#ifdef USG
+      debug_setpgrp = setpgrp ();
+#else
       debug_setpgrp = setpgrp (getpid (), getpid ());
+#endif
       if (debug_setpgrp == -1)
         perror("setpgrp failed in child");
 #endif /* TIOCGPGRP */