https://issues.dlang.org/show_bug.cgi?id=22222
Dlang Bot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <[email protected]> --- dlang/phobos pull request #8197 "Fix issue #22222 - Custom unittest runner on phobos fails due to segfault on fork() exiting" was merged into master: - 757499319fe2314fe2d81dbc01330f0a5e23f9d3 by Luís Ferreira: std.stdio: change exit(0) to _exit(0) to prevent segfault Fixes #22222. `exit(0)` call from libc does an exit sequence before exit and therefore doesn't exit immediately. This causes problems on custom unittest runners. To circunvent this problem we should call `_exit()` syscall to exit immediately. In this context this is just fine to do and can prevent any future frustration when debugging. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/phobos/pull/8197 --
