diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-10-30 07:32:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-10-30 07:32:04 +0000 |
commit | 41535eaea9e22f330f9853200140d386b44e809c (patch) | |
tree | 15dc98f27691d277436aa15531e692d979cdefa1 | |
parent | 02437b2d51d586d6879d4cd3713e6d873395f851 (diff) |
only use siginterrupt() if it really exists on the platform
-rw-r--r-- | tests/server/sws.c | 2 |
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 |