From: VMware, Inc <> Date: Wed, 18 Sep 2013 03:21:32 +0000 (-0700) Subject: Ignore SIGPIPE for tools. X-Git-Tag: 2013.09.16-1328054~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6873aa9d43c6b807057fcd165f2a8547b5ed5a2;p=thirdparty%2Fopen-vm-tools.git Ignore SIGPIPE for tools. Otherwise tools exits upon socket write error. Found this in guest rabbitmq proxy testing. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/services/vmtoolsd/mainPosix.c b/open-vm-tools/services/vmtoolsd/mainPosix.c index c47e091c3..db06e5acf 100644 --- a/open-vm-tools/services/vmtoolsd/mainPosix.c +++ b/open-vm-tools/services/vmtoolsd/mainPosix.c @@ -224,6 +224,8 @@ main(int argc, /* Ignore SIGUSR2 by default. */ signal(SIGUSR2, SIG_IGN); + signal(SIGPIPE, SIG_IGN); + /* * Save the original environment so that we can safely spawn other * applications (since we may have to modify the original environment