/[global]/global/gnusort/sort.c
ViewVC logotype

Diff of /global/gnusort/sort.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by shigio, Sun Nov 7 12:57:40 2004 UTC revision 1.3 by shigio, Mon Nov 15 23:48:30 2004 UTC
# Line 1841  sighandler (int sig) Line 1841  sighandler (int sig)
1841    signal (sig, SIG_DFL);    signal (sig, SIG_DFL);
1842  #endif                          /* SA_INTERRUPT */  #endif                          /* SA_INTERRUPT */
1843    cleanup ();    cleanup ();
1844    #ifdef __MINGW32__
1845      raise (sig);
1846    #else
1847    kill (getpid (), sig);    kill (getpid (), sig);
1848    #endif
1849  }  }
1850    
1851  /* Set the ordering options for KEY specified in S.  /* Set the ordering options for KEY specified in S.
# Line 1978  main (int argc, char **argv) Line 1982  main (int argc, char **argv)
1982  #else                           /* !SA_INTERRUPT */  #else                           /* !SA_INTERRUPT */
1983    if (signal (SIGINT, SIG_IGN) != SIG_IGN)    if (signal (SIGINT, SIG_IGN) != SIG_IGN)
1984      signal (SIGINT, sighandler);      signal (SIGINT, sighandler);
1985    #ifdef SIGHUP
1986    if (signal (SIGHUP, SIG_IGN) != SIG_IGN)    if (signal (SIGHUP, SIG_IGN) != SIG_IGN)
1987      signal (SIGHUP, sighandler);      signal (SIGHUP, sighandler);
1988    #endif
1989    #ifdef SIGPIPE
1990    if (signal (SIGPIPE, SIG_IGN) != SIG_IGN)    if (signal (SIGPIPE, SIG_IGN) != SIG_IGN)
1991      signal (SIGPIPE, sighandler);      signal (SIGPIPE, sighandler);
1992    #endif
1993    if (signal (SIGTERM, SIG_IGN) != SIG_IGN)    if (signal (SIGTERM, SIG_IGN) != SIG_IGN)
1994      signal (SIGTERM, sighandler);      signal (SIGTERM, sighandler);
1995  #endif                          /* !SA_INTERRUPT */  #endif                          /* !SA_INTERRUPT */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26