Ticket #27982: jed.patch

File jed.patch, 1.6 KB (added by balaton@…, 14 years ago)
  • ports/editors/jed/Portfile

    diff -uNr /opt/local/var/macports/sources/rsync.macports.org/release/ports/editors/jed/Portfile Library/MacPorts/ports/editors/jed/Portfile
    old new  
    2828
    2929depends_lib                 port:slang2
    3030
    31 patchfiles                  patch-pty.c
     31patchfiles                  patch-pty.c \
     32                            patch-unix.c
    3233
    3334configure.args              --mandir=${prefix}/share/man \
    3435                            --with-slang=${prefix}
  • ports/editors/jed/files/patch-unix.c

    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 }