]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Ignore SIGPIPE for tools.
authorVMware, Inc <>
Wed, 18 Sep 2013 03:21:32 +0000 (20:21 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:06:57 +0000 (22:06 -0700)
Otherwise tools exits upon socket write error.  Found this in guest
rabbitmq proxy testing.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/services/vmtoolsd/mainPosix.c

index c47e091c3d1a1eebc2bdcc91b22a05dd7284ecc5..db06e5acf57cc61c634c3c99965688a4f003144c 100644 (file)
@@ -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