aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-30 07:32:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-30 07:32:04 +0000
commit41535eaea9e22f330f9853200140d386b44e809c (patch)
tree15dc98f27691d277436aa15531e692d979cdefa1
parent02437b2d51d586d6879d4cd3713e6d873395f851 (diff)
only use siginterrupt() if it really exists on the platform
-rw-r--r--tests/server/sws.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 8ee2e96ef..b006c2b57 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -537,6 +537,8 @@ int main(int argc, char *argv[])
#ifdef HAVE_SIGNAL
signal(SIGPIPE, sigpipe_handler);
+#endif
+#ifdef HAVE_SIGINTERRUPT
siginterrupt(SIGPIPE, 1);
#endif