diff -uNr /opt/local/var/macports/sources/rsync.macports.org/release/ports/editors/jed/Portfile Library/MacPorts/ports/editors/jed/Portfile
old
|
new
|
|
28 | 28 | |
29 | 29 | depends_lib port:slang2 |
30 | 30 | |
31 | | patchfiles patch-pty.c |
| 31 | patchfiles patch-pty.c \ |
| 32 | patch-unix.c |
32 | 33 | |
33 | 34 | configure.args --mandir=${prefix}/share/man \ |
34 | 35 | --with-slang=${prefix} |
diff -uNr /opt/local/var/macports/sources/rsync.macports.org/release/ports/editors/jed/files/patch-unix.c Library/MacPorts/ports/editors/jed/files/patch-unix.c
old
|
new
|
|
| 1 | --- src/unix.c 2009-12-14 03:12:55.000000000 +0100 |
| 2 | +++ src/unix.c 2010-05-24 10:42:14.000000000 +0200 |
| 3 | @@ -211,8 +211,19 @@ |
| 4 | { |
| 5 | pid_t pid = getpid (); |
| 6 | Startup_PGID = getpgid (pid); |
| 7 | - (void) tcsetpgrp (Read_FD, pid); |
| 8 | - (void) setpgid (pid, pid); |
| 9 | + if (-1 == tcsetpgrp (Read_FD, pid)) |
| 10 | + { |
| 11 | + fprintf (stderr, "tcsetpgrp failed\n"); |
| 12 | + Terminal_PGID = -1; |
| 13 | + return; |
| 14 | + } |
| 15 | + if (-1 == setpgid (pid, pid)) |
| 16 | + { |
| 17 | + fprintf (stderr, "setpgid failed\n"); |
| 18 | + (void) tcsetpgrp (Read_FD, Startup_PGID); |
| 19 | + Terminal_PGID = -1; |
| 20 | + return; |
| 21 | + } |
| 22 | } |
| 23 | #endif |
| 24 | } |