diff options
author | Akihiro Suda <suda.akihiro@lab.ntt.co.jp> | 2018-08-01 23:22:00 +0900 |
---|---|---|
committer | Akihiro Suda <suda.akihiro@lab.ntt.co.jp> | 2018-08-01 23:22:06 +0900 |
commit | c604bf67404b9919010cdf4ea6f00dd3508925f4 (patch) | |
tree | f6e1727c50c87c25c0cbdddca219886538d3071e | |
parent | a28a856e10ff64506ea4278daaae2c7c6760588b (diff) |
ignore SIGPIPE
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
-rw-r--r-- | slirp4netns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp4netns.c b/slirp4netns.c index 2cfaa0d..66df100 100644 --- a/slirp4netns.c +++ b/slirp4netns.c @@ -1,6 +1,7 @@ #define _GNU_SOURCE #include <assert.h> #include <stdio.h> +#include <signal.h> #include <arpa/inet.h> #include "qemu/slirp/slirp.h" @@ -68,6 +69,7 @@ int do_slirp(int tapfd, int exitfd) n_fds++; g_array_append_val(&pollfds, exit_pollfd); } + signal(SIGPIPE, SIG_IGN); while (1) { int pollout; uint32_t timeout = -1; |