]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
bora/lib: Use _exit when in the context of a signal handler
authorOliver Kurth <okurth@vmware.com>
Fri, 23 Mar 2018 21:57:12 +0000 (14:57 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 23 Mar 2018 21:57:12 +0000 (14:57 -0700)
There are a few cases in bora/lib where exit(3) is used in the
context of a signal handler. It was recently noticed that exit(3) is
not async-signal-safe, and _exit(2) should be used instead.

This patch changes a call from exit(3) to _exit(2) in bora/lib.

open-vm-tools/lib/panic/panic.c

index c739842d521e8226bba5d9af5148a177295c5878..e26cb58f867596e70d96fff71573e598b4c3476f 100644 (file)
@@ -622,7 +622,7 @@ Panic_Panic(const char *format,
     */
    Log("Exiting\n");
 
-   exit(-1);
+   Util_ExitProcessAbruptly(-1);
    NOT_REACHED();
 }