Files
termux-packages/packages/gdb/gdbsupport-job-control.cc.patch
termux-pacman-bot 9a9e17a8c5 gdb: Bump to 12.1
2022-10-12 15:52:43 +00:00

12 lines
409 B
Diff

--- a/gdbsupport/job-control.cc
+++ b/gdbsupport/job-control.cc
@@ -48,7 +48,7 @@ gdb_setpgid ()
/* The call setpgid (0, 0) is supposed to work and mean the same
thing as this, but on Ultrix 4.2A it fails with EPERM (and
setpgid (getpid (), getpid ()) succeeds). */
- retval = setpgid (getpid (), getpid ());
+ retval = setpgid (0, 0);
#else
#ifdef HAVE_SETPGRP
#ifdef SETPGRP_VOID