tiny bug in test.
This commit is contained in:
parent
b1a4ad2b19
commit
b2b7e9cef1
3 changed files with 8 additions and 12 deletions
|
@ -17,12 +17,6 @@
|
|||
* Initializes module
|
||||
\*-------------------------------------------------------------------------*/
|
||||
int sock_open(void) {
|
||||
#if DOESNT_COMPILE_TRY_THIS
|
||||
struct sigaction ignore;
|
||||
memset(&ignore, 0, sizeof(ignore));
|
||||
ignore.sa_handler = SIG_IGN;
|
||||
sigaction(SIGPIPE, &ignore, NULL);
|
||||
#endif
|
||||
/* instals a handler to ignore sigpipe or it will crash us */
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue