Changeset 2467 for trunk/src/kmk


Ignore:
Timestamp:
Jul 12, 2011, 12:17:47 PM (14 years ago)
Author:
bird
Message:

kmk/job.c: bitch if sigaction fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/job.c

    r2101 r2467  
    10151015{
    10161016  struct sigaction sa;
     1017  int rval = 0;
    10171018
    10181019#if defined(__EMX__) && !defined(__KLIBC__) /* bird */
     
    10251026  sa.sa_flags = set_handler ? 0 : SA_RESTART;
    10261027#if defined SIGCHLD
    1027   sigaction (SIGCHLD, &sa, NULL);
     1028  rval = sigaction (SIGCHLD, &sa, NULL);
    10281029#endif
    10291030#if defined SIGCLD && SIGCLD != SIGCHLD
    1030   sigaction (SIGCLD, &sa, NULL);
    1031 #endif
     1031  rval = sigaction (SIGCLD, &sa, NULL);
     1032#endif
     1033  if (rval != 0)
     1034    fprintf (stderr, "sigaction: %s (%d)\n", strerror (errno), errno);
    10321035#if defined SIGALRM
    10331036  if (set_alarm)
Note: See TracChangeset for help on using the changeset viewer.