diff options
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; |
