mirror of https://github.com/0intro/wmii
Ensure default sigpipe handler in wmiir. Fixes issue #160.
This commit is contained in:
parent
f36c830a49
commit
7792c327d0
|
@ -5,6 +5,7 @@
|
|||
#define IXP_P9_STRUCTS
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/signal.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <ixp.h>
|
||||
|
@ -407,6 +408,8 @@ main(int argc, char *argv[]) {
|
|||
if(client == nil)
|
||||
fatal("can't mount: %r\n");
|
||||
|
||||
signal(SIGPIPE, SIG_DFL);
|
||||
|
||||
for(tab=fstab; tab->cmd; tab++)
|
||||
if(strcmp(*argv, tab->cmd) == 0) break;
|
||||
if(tab->cmd == 0)
|
||||
|
|
Loading…
Reference in New Issue