diff options
author | Fred Fish <fnf@specifix.com> | 1991-10-24 09:26:05 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1991-10-24 09:26:05 +0000 |
commit | 150f5436253236069fabd06db673ba39059f7a1f (patch) | |
tree | f3471125d9b0cfb9db10358190e2e636c7f909be /gdb/infrun.c | |
parent | 7b71de814a26ee20785a4d1f87c381632c050998 (diff) | |
download | gdb-150f5436253236069fabd06db673ba39059f7a1f.zip gdb-150f5436253236069fabd06db673ba39059f7a1f.tar.gz gdb-150f5436253236069fabd06db673ba39059f7a1f.tar.bz2 |
System V versions must call setpgrp() with no arguments, to comply with
prototyping typically in <unistd.h>. Otherwise the compile fails, at
least with gcc.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 1aea0a2..ce7da91 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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 */ |