From: Oliver Kurth Date: Fri, 23 Mar 2018 21:57:12 +0000 (-0700) Subject: bora/lib: Use _exit when in the context of a signal handler X-Git-Tag: stable-10.3.0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6de42f7d96fb5c70d70ae3b68011477f8b93aef2;p=thirdparty%2Fopen-vm-tools.git bora/lib: Use _exit when in the context of a signal handler 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. --- diff --git a/open-vm-tools/lib/panic/panic.c b/open-vm-tools/lib/panic/panic.c index c739842d5..e26cb58f8 100644 --- a/open-vm-tools/lib/panic/panic.c +++ b/open-vm-tools/lib/panic/panic.c @@ -622,7 +622,7 @@ Panic_Panic(const char *format, */ Log("Exiting\n"); - exit(-1); + Util_ExitProcessAbruptly(-1); NOT_REACHED(); }