aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-02 18:58:23 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-02 18:58:23 +0000
commitb2b7e9cef1bbe70018505cd4bc222058d7e6f106 (patch)
tree15efbebbe6229d82be8bbfbc7f544a1b5d763a68 /src
parentb1a4ad2b1996936744c679e6ae563986ff701a3a (diff)
downloadluasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.tar.gz
luasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.tar.bz2
luasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.zip
tiny bug in test.
Diffstat (limited to 'src')
-rw-r--r--src/usocket.c6
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\*-------------------------------------------------------------------------*/
19int sock_open(void) { 19int 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;