]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Explicitly ignore SIGUSR2 by default in vmtoolsd.
authorVMware, Inc <>
Tue, 19 Oct 2010 18:41:25 +0000 (11:41 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 19 Oct 2010 18:41:25 +0000 (11:41 -0700)
It seems the default handler was making the process exit, which is not
what we want.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/services/vmtoolsd/mainPosix.c

index 2b36441b300c53d5ef8757c79d57da39d368fc28..f7de71bd561a491ab77c77ef1c17fe9af9ea2fc1 100644 (file)
@@ -219,6 +219,9 @@ main(int argc,
    VMTOOLSAPP_ATTACH_SOURCE(&gState.ctx, src, ToolsCoreSigUsrHandler, NULL, NULL);
    g_source_unref(src);
 
+   /* Ignore SIGUSR2 by default. */
+   signal(SIGUSR2, SIG_IGN);
+
    /*
     * Save the original environment so that we can safely spawn other
     * applications (since we may have to modify the original environment