Ensure default sigpipe handler in wmiir. Fixes issue #160.

This commit is contained in:
Kris Maglione 2010-05-28 00:29:31 -04:00
parent f36c830a49
commit 7792c327d0

View File

@ -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)