do_pipe_sig is now only used in openssl.c - just call signal() directly
authorjsing <jsing@openbsd.org>
Fri, 25 Apr 2014 14:00:15 +0000 (14:00 +0000)
committerjsing <jsing@openbsd.org>
Fri, 25 Apr 2014 14:00:15 +0000 (14:00 +0000)
from there instead and ditch the macro.

lib/libssl/src/apps/apps.h
lib/libssl/src/apps/openssl.c

index 1f013e3..41656f9 100644 (file)
@@ -132,8 +132,6 @@ extern BIO *bio_err;
 
 #include <signal.h>
 
-#define do_pipe_sig()  signal(SIGPIPE,SIG_IGN)
-
 #ifdef OPENSSL_NO_COMP
 #define zlib_cleanup()
 #else
index 7070b4c..a12dc98 100644 (file)
@@ -199,7 +199,7 @@ err:
 static void
 openssl_startup(void)
 {
-       do_pipe_sig();
+       signal(SIGPIPE, SIG_IGN);
 
        CRYPTO_malloc_init();
        ERR_load_crypto_strings();