Changeset 379 for trunk/src/sh_prelink.c


Ignore:
Timestamp:
Nov 28, 2011, 9:56:30 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #277 (sigpipe).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_prelink.c

    r374 r379  
    164164  int    status = 0;
    165165  char * p;
    166   struct  sigaction  new_act;
    167   struct  sigaction  old_act;
    168166
    169167  SL_ENTER(_("sh_prelink_run"));
     
    256254      SL_RETURN ((-1), _("sh_prelink_run"));
    257255    }
    258 
    259   /* ignore SIGPIPE (instead get EPIPE if connection is closed)
    260    */
    261   new_act.sa_handler = SIG_IGN;
    262   (void) retry_sigaction (FIL__, __LINE__, SIGPIPE, &new_act, &old_act);
    263256
    264257  /* read from pipe
     
    275268  }
    276269
    277   /* restore old signal handler
    278    */
    279   (void) retry_sigaction (FIL__, __LINE__, SIGPIPE, &old_act, NULL);
    280 
    281270  /* close pipe and return exit status
    282271   */
Note: See TracChangeset for help on using the changeset viewer.