projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore SIGPIPE in keyd
[onak.git]
/
keyd.c
diff --git
a/keyd.c
b/keyd.c
index 919b61b899a886609f29caebf86e841b725c9fce..ccc47502f0fd0e86de306ead5a82ac927619d999 100644
(file)
--- a/
keyd.c
+++ b/
keyd.c
@@
-9,6
+9,7
@@
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-406,7
+407,8
@@
int main(int argc, char *argv[])
}
catchsignals();
}
catchsignals();
-
+ signal(SIGPIPE, SIG_IGN);
+
snprintf(sockname, 1023, "%s/%s", config.db_dir, KEYD_SOCKET);
fd = sock_init(sockname);
snprintf(sockname, 1023, "%s/%s", config.db_dir, KEYD_SOCKET);
fd = sock_init(sockname);