diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-02 18:58:23 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-02 18:58:23 +0000 |
commit | b2b7e9cef1bbe70018505cd4bc222058d7e6f106 (patch) | |
tree | 15efbebbe6229d82be8bbfbc7f544a1b5d763a68 /src | |
parent | b1a4ad2b1996936744c679e6ae563986ff701a3a (diff) | |
download | luasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.tar.gz luasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.tar.bz2 luasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.zip |
tiny bug in test.
Diffstat (limited to 'src')
-rw-r--r-- | src/usocket.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/usocket.c b/src/usocket.c index 0e3d30c..4e73a96 100644 --- a/src/usocket.c +++ b/src/usocket.c | |||
@@ -17,12 +17,6 @@ | |||
17 | * Initializes module | 17 | * Initializes module |
18 | \*-------------------------------------------------------------------------*/ | 18 | \*-------------------------------------------------------------------------*/ |
19 | int sock_open(void) { | 19 | int sock_open(void) { |
20 | #if DOESNT_COMPILE_TRY_THIS | ||
21 | struct sigaction ignore; | ||
22 | memset(&ignore, 0, sizeof(ignore)); | ||
23 | ignore.sa_handler = SIG_IGN; | ||
24 | sigaction(SIGPIPE, &ignore, NULL); | ||
25 | #endif | ||
26 | /* instals a handler to ignore sigpipe or it will crash us */ | 20 | /* instals a handler to ignore sigpipe or it will crash us */ |
27 | signal(SIGPIPE, SIG_IGN); | 21 | signal(SIGPIPE, SIG_IGN); |
28 | return 1; | 22 | return 1; |