Skip to content

util: Use _exit after failed execve

Mark Kettenis requested to merge kettenis/piglit:subprocess into master

Currently the code uses exit, which runs the exit handlers installed by the parent. This causes issues since some of the Mesa drivers (such as radeonsi) install exit handlers to clean up the thread pool they created. However since the threads in the pool don't exist in the child this ends up calling pthread_join on non-existent threads which is undefined behaviour.

Signed-off-by: Mark Kettenis kettenis@openbsd.org

Merge request reports

Loading