[75146] trunk/dports/editors/jed

ryandesign at macports.org ryandesign at macports.org
Sun Jan 16 02:30:50 PST 2011


Revision: 75146
          http://trac.macports.org/changeset/75146
Author:   ryandesign at macports.org
Date:     2011-01-16 02:30:41 -0800 (Sun, 16 Jan 2011)
Log Message:
-----------
jed: apply upstream fix for freeze when jed is started from another program; see #27982

Modified Paths:
--------------
    trunk/dports/editors/jed/Portfile

Added Paths:
-----------
    trunk/dports/editors/jed/files/patch-unix.c

Modified: trunk/dports/editors/jed/Portfile
===================================================================
--- trunk/dports/editors/jed/Portfile	2011-01-16 10:22:54 UTC (rev 75145)
+++ trunk/dports/editors/jed/Portfile	2011-01-16 10:30:41 UTC (rev 75146)
@@ -4,6 +4,7 @@
 
 name                        jed
 version                     0.99-19
+revision                    1
 categories                  editors
 platforms                   darwin
 maintainers                 nomaintainer
@@ -28,7 +29,8 @@
 
 depends_lib                 port:slang2
 
-patchfiles                  patch-pty.c
+patchfiles                  patch-pty.c \
+                            patch-unix.c
 
 configure.args              --mandir=${prefix}/share/man \
                             --with-slang=${prefix}

Added: trunk/dports/editors/jed/files/patch-unix.c
===================================================================
--- trunk/dports/editors/jed/files/patch-unix.c	                        (rev 0)
+++ trunk/dports/editors/jed/files/patch-unix.c	2011-01-16 10:30:41 UTC (rev 75146)
@@ -0,0 +1,24 @@
+--- src/unix.c.orig	2009-12-14 03:12:55.000000000 +0100
++++ src/unix.c	2010-05-24 10:42:14.000000000 +0200
+@@ -211,8 +211,19 @@
+      {
+ 	pid_t pid = getpid ();
+ 	Startup_PGID = getpgid (pid);
+-	(void) tcsetpgrp (Read_FD, pid);
+-	(void) setpgid (pid, pid);
++	if (-1 == tcsetpgrp (Read_FD, pid))
++	  {
++	     fprintf (stderr, "tcsetpgrp failed\n");
++	     Terminal_PGID = -1;
++	     return;
++	  }
++	if (-1 == setpgid (pid, pid))
++	  {
++	     fprintf (stderr, "setpgid failed\n");
++	     (void) tcsetpgrp (Read_FD, Startup_PGID);
++	     Terminal_PGID = -1;
++	     return;
++	  }
+      }
+ #endif
+ }


Property changes on: trunk/dports/editors/jed/files/patch-unix.c
___________________________________________________________________
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110116/d0a717d5/attachment.html>


More information about the macports-changes mailing list