piglit-util: use _exit to skip context destruction

Submitted by Marek Olšák on May 2, 2018, 8:33 p.m.

Details

Message ID 20180502203316.11379-1-maraeo@gmail.com
State New
Headers show
Series "piglit-util: use _exit to skip context destruction" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Marek Olšák May 2, 2018, 8:33 p.m.
From: Marek Olšák <marek.olsak@amd.com>

---
 tests/util/piglit-util.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index ed7d21c95..01207ffa5 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -58,20 +58,21 @@ 
 # include <sys/types.h>
 # include <sys/stat.h>
 # include <fcntl.h>
 # include <unistd.h>
 #else
 # define USE_STDIO
 #endif
 
 #if defined(HAVE_UNISTD_H)
 #include <unistd.h>  // for usleep
+#define exit _exit /* skip atexit callbacks and other deinitializations */
 #endif
 
 #include "piglit-util.h"
 
 
 #ifndef HAVE_ASPRINTF
 
 /* Some versions of MinGW are missing _vscprintf's declaration, although they
  * still provide the symbol in the import library.
  */

Comments

Marek Olšák <maraeo@gmail.com> writes:

> From: Marek Olšák <marek.olsak@amd.com>

You should have a "why" in your commit message.