Use _exit() instead of exit() in child processes
commit1a2f49f17fb451fdfd1a3afa172d825627ef7c6a
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 1 Jun 2018 16:51:29 +0000 (1 18:51 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 7 Jun 2018 09:00:16 +0000 (7 11:00 +0200)
tree0fde9ff0d81e4aa3ebfa905d8cc6cfa1fca955bd
parent01c90b0a8189414e7c9dab8935ad66a1fc64bebb
Use _exit() instead of exit() in child processes

A child process which doesn't call exec() shouldn't use exit(), as that
will attempt to run any atexit handlers of the parent, which may break.
It actually results in crashing with the Mesa radeonsi driver.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
tests/spec/glx_ext_import_context/import-context-multi-process.c
tests/spec/glx_ext_import_context/make-current-multi-process.c
tests/spec/glx_ext_import_context/make-current-single-process.c