| 1 | diff -u -r ../gdb-7.10.1/gdb/inflow.c ./gdb/inflow.c |
| 2 | --- ../gdb-7.10.1/gdb/inflow.c 2015-12-05 10:16:45.000000000 -0500 |
| 3 | +++ ./gdb/inflow.c 2016-02-07 19:28:38.979181296 -0500 |
| 4 | @@ -862,10 +862,10 @@ |
| 5 | { |
| 6 | #if defined (HAVE_TERMIOS) || defined (TIOCGPGRP) |
| 7 | #ifdef HAVE_SETPGID |
| 8 | - /* The call setpgid (0, 0) is supposed to work and mean the same |
| 9 | - thing as this, but on Ultrix 4.2A it fails with EPERM (and |
| 10 | - setpgid (getpid (), getpid ()) succeeds). */ |
| 11 | - retval = setpgid (getpid (), getpid ()); |
| 12 | + /* Termux change: setpgid(getpid(), getpid()), which is used upstream |
| 13 | + for working around Ultrix 4.2A issue, does not work on Android but |
| 14 | + fails with ESRCH. So revert back to simple setpgid(0,0). */ |
| 15 | + retval = setpgid (0, 0); |
| 16 | #else |
| 17 | #ifdef HAVE_SETPGRP |
| 18 | #ifdef SETPGRP_VOID |