llvm-capstone/flang/unittests
Yi Wu 5a7f9a5a9c
[flang] use setsid to assign the child to prevent zombie as it will be clean up by init process (#77944)
When using `setsid()` in a child process created by `fork()`, a new
session is created, and the child becomes a session leader. If the
parent process terminates before the child, the child becomes an orphan
and is adopted by the `init` process. The `init` process will eventually
clean up the child process once it exits.

However, killing the parent does not automatically kill the child; the
child will continue running until it exits.
Proper cleanup involves waiting for the child process to exit using
`wait()` or `waitpid()` in the parent process to avoid zombie processes,
but this approach is not valid for `EXECUTE_COMMAND_LINE` with async
mode.
Fix: https://github.com/llvm/llvm-project/issues/77803
2024-01-19 14:18:57 +00:00
..
Common [flang] Allow more concurrently open NEWUNIT= values, with recycling 2022-02-28 16:13:22 -08:00
Decimal [flang][unittests] Fix recent snprintf() changes to use correct buffer lengths 2023-07-18 10:28:16 -07:00
Evaluate [flang] Run real 10 test on x86 only (NFC) (#73911) 2023-12-05 10:44:21 -05:00
Frontend [flang][re-apply] Fix seg fault CodeGenAction::executeAction() (#78672) 2024-01-19 10:40:25 +01:00
Optimizer [flang] GETPID runtime and lower intrinsic implementation (#70442) 2023-11-13 10:31:36 +00:00
Runtime [flang] use setsid to assign the child to prevent zombie as it will be clean up by init process (#77944) 2024-01-19 14:18:57 +00:00
CMakeLists.txt Revert "[Flang] [FlangRT] Introduce FlangRT project as solution to Flang's runtime LLVM integration" 2023-10-02 09:02:05 +00:00