bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GLOBAL 4.8.2 MinGW32 patch


From: Jason Hood
Subject: GLOBAL 4.8.2 MinGW32 patch
Date: Tue, 16 Nov 2004 04:11:33 +1000

gnusort disagreed with MinGW32; the attached patch corrects that.

Jason.
--- gnusort/sort~.c     Thu Nov 11 15:32:18 2004
+++ gnusort/sort.c      Sun Nov 14 14:58:52 2004
@@ -1841,7 +1841,11 @@
   signal (sig, SIG_DFL);
 #endif                         /* SA_INTERRUPT */
   cleanup ();
+#ifdef __MINGW32__
+  raise (sig);
+#else
   kill (getpid (), sig);
+#endif
 }
 
 /* Set the ordering options for KEY specified in S.
@@ -1978,10 +1982,14 @@
 #else                          /* !SA_INTERRUPT */
   if (signal (SIGINT, SIG_IGN) != SIG_IGN)
     signal (SIGINT, sighandler);
+#ifdef SIGHUP
   if (signal (SIGHUP, SIG_IGN) != SIG_IGN)
     signal (SIGHUP, sighandler);
+#endif
+#ifdef SIGPIPE
   if (signal (SIGPIPE, SIG_IGN) != SIG_IGN)
     signal (SIGPIPE, sighandler);
+#endif
   if (signal (SIGTERM, SIG_IGN) != SIG_IGN)
     signal (SIGTERM, sighandler);
 #endif                         /* !SA_INTERRUPT */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]