forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user