1 #ifndef HEADER_CURL_SIGPIPE_H 2 #define HEADER_CURL_SIGPIPE_H 26 #if defined(HAVE_SIGNAL_H) && defined(HAVE_SIGACTION) && defined(USE_OPENSSL) 30 struct sigaction old_pipe_act;
34 #define SIGPIPE_VARIABLE(x) struct sigpipe_ignore x 50 memset(&ig->old_pipe_act, 0,
sizeof(
struct sigaction));
51 sigaction(SIGPIPE, NULL, &ig->old_pipe_act);
54 action.sa_handler = SIG_IGN;
55 sigaction(SIGPIPE, &action, NULL);
68 sigaction(SIGPIPE, &ig->old_pipe_act, NULL);
73 #define sigpipe_ignore(x,y) Curl_nop_stmt 74 #define sigpipe_restore(x) Curl_nop_stmt 75 #define SIGPIPE_VARIABLE(x)
#define sigpipe_ignore(x, y)
#define sigpipe_restore(x)