mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
Merge with IET r195:
From: Lars Ellenberg <lars.ellenberg@linbit.com> Ignore SIGPIPE in ietd Otherwise we would die in some later write() during the event_loop instead of getting EPIPE! git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@652 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <netdb.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <sys/poll.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -581,6 +582,12 @@ int main(int argc, char **argv)
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Otherwise we could die in some later write() during the event_loop()
|
||||
* instead of getting EPIPE!
|
||||
*/
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
while ((ch = getopt_long(argc, argv, "c:fd:s:u:g:a:p:vh", long_options, &longindex)) >= 0) {
|
||||
switch (ch) {
|
||||
case 'c':
|
||||
|
||||
Reference in New Issue
Block a user