mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
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
|
#define IXP_P9_STRUCTS
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <sys/signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <ixp.h>
|
#include <ixp.h>
|
||||||
@ -407,6 +408,8 @@ main(int argc, char *argv[]) {
|
|||||||
if(client == nil)
|
if(client == nil)
|
||||||
fatal("can't mount: %r\n");
|
fatal("can't mount: %r\n");
|
||||||
|
|
||||||
|
signal(SIGPIPE, SIG_DFL);
|
||||||
|
|
||||||
for(tab=fstab; tab->cmd; tab++)
|
for(tab=fstab; tab->cmd; tab++)
|
||||||
if(strcmp(*argv, tab->cmd) == 0) break;
|
if(strcmp(*argv, tab->cmd) == 0) break;
|
||||||
if(tab->cmd == 0)
|
if(tab->cmd == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user