aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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