llvm-capstone/flang/runtime
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
..
FortranMain [flang] Add dependency to all runtime types to main target on Windows 2023-11-14 14:24:50 +00:00
allocatable.cpp [flang] Don't change size of allocatable in error situation (#77386) 2024-01-15 12:18:34 -08:00
array-constructor.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
assign-impl.h [flang][runtime] Added Assign runtime to CUDA build closure. (#68171) 2023-10-04 08:21:46 -07:00
assign.cpp [flang][runtime] Workaround cuda-11.8 compilation issue. (#68459) 2023-10-09 16:26:06 -07:00
buffer.cpp
buffer.h
character.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
CMakeLists.txt [flang] Add EXECUTE_COMMAND_LINE runtime and lowering intrinsics implementation (#74077) 2024-01-10 10:02:48 +00:00
command.cpp [flang] Add EXECUTE_COMMAND_LINE runtime and lowering intrinsics implementation (#74077) 2024-01-10 10:02:48 +00:00
complex-powi.cpp
complex-reduction.c
complex-reduction.h
config.h.cmake
connection.cpp [flang][runtime] Handle unconsumed repeated list-directed input items (#75400) 2023-12-26 15:44:31 -08:00
connection.h [flang][runtime] Handle unconsumed repeated list-directed input items (#75400) 2023-12-26 15:44:31 -08:00
copy.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
copy.h
derived-api.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
derived.cpp [flang][runtime] Added Assign runtime to CUDA build closure. (#68171) 2023-10-04 08:21:46 -07:00
derived.h
descriptor-io.cpp [flang][runtime] Make defined formatted I/O process format elementally (#74150) 2023-12-11 11:55:44 -08:00
descriptor-io.h [flang][runtime] Make defined formatted I/O process format elementally (#74150) 2023-12-11 11:55:44 -08:00
descriptor.cpp [flang][runtime] Fix SAME_TYPE_AS()/EXTENDS_TYPE_OF() for CLASS(*) (#67727) 2023-10-17 08:20:38 -07:00
dot-product.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
edit-input.cpp [flang][runtime] Resume rounding hexadecimal floating-point input (#77006) 2024-01-15 10:39:22 -08:00
edit-input.h
edit-output.cpp [flang][runtime] Fix trailing blanks for Gw.dEe output editing (#75263) 2023-12-26 15:23:01 -08:00
edit-output.h [flang][runtime] Implement EX editing for input & output (#67208) 2023-10-16 13:56:07 -07:00
emit-encoded.h
environment-default-list.h
environment.cpp
environment.h
exceptions.cpp [flang] Adjust _FORTRAN_RUNTIME_IEEE_FENV_T_EXTENT for Solaris (#74590) 2023-12-14 22:03:45 +01:00
execute.cpp [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
extensions.cpp [flang] allow _POSIX_SOURCE to be defined without a value (#78179) 2024-01-15 16:54:51 -05:00
extrema.cpp [flang][runtime] Treatment of NaN in MAXVAL/MAXLOC/MINVAL/MINLOC (#76999) 2024-01-15 10:29:26 -08:00
file.cpp
file.h
findloc.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
format-implementation.h [flang][runtime] Allow already-documented missing 'w' on edit descriptor (#72901) 2023-11-30 12:51:56 -08:00
format.cpp
format.h [flang][runtime] Correct automatic parenthesized format repetition case (#71436) 2023-11-13 14:52:51 -08:00
freestanding-tools.h [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
inquiry.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
internal-unit.cpp [flang][runtime] Clear last record in internal WRITE even if nothing … (#74528) 2023-12-11 12:32:29 -08:00
internal-unit.h
io-api.cpp [flang][runtime] Don't use -1 in I/O API for "default unit" (#76642) 2024-01-02 09:44:16 -08:00
io-error.cpp
io-error.h
io-stmt.cpp [flang][runtime] Emit leading space before zero-length list-directed … (#77835) 2024-01-15 12:52:18 -08:00
io-stmt.h [flang][runtime] Handle unconsumed repeated list-directed input items (#75400) 2023-12-26 15:44:31 -08:00
iostat.cpp [flang][runtime] Crash more informatively in defined I/O error case (#74134) 2023-12-11 11:28:38 -08:00
ISO_Fortran_binding.cpp [Flang] malloc(1) on AIX as malloc(0) returns nullptr (#73878) 2023-12-06 08:45:35 -05:00
ISO_Fortran_util.h
lock.h
main.cpp
matmul-transpose.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
matmul.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
memory.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
misc-intrinsic.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
namelist.cpp [flang][runtime] Emit leading spaces in NAMELIST output (#76846) 2024-01-15 10:02:52 -08:00
namelist.h
non-tbp-dio.cpp
non-tbp-dio.h
numeric.cpp [flang][runtime] Better real MOD/MODULO results (#77167) 2024-01-15 11:48:36 -08:00
pointer.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
product.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
ragged.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
random.cpp [flang] Cleanup of NYI messages (#73740) 2023-11-29 09:20:46 -08:00
reduction-templates.h [flang][runtime] Treatment of NaN in MAXVAL/MAXLOC/MINVAL/MINLOC (#76999) 2024-01-15 10:29:26 -08:00
reduction.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
stat.cpp [flang][runtime] Added Assign runtime to CUDA build closure. (#68171) 2023-10-04 08:21:46 -07:00
stat.h [flang][runtime] Added Assign runtime to CUDA build closure. (#68171) 2023-10-04 08:21:46 -07:00
stop.cpp
sum.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
support.cpp [flang][runtime] Enable more APIs in the offload build. (#76486) 2023-12-28 13:50:43 -08:00
temporary-stack.cpp
terminator.cpp
terminator.h
time-intrinsic.cpp
tools.cpp [flang] Fix const cast issue in FreeMemory function call in execute_command_line (#77906) 2024-01-13 01:22:40 +00:00
tools.h [flang] Fix const cast issue in FreeMemory function call in execute_command_line (#77906) 2024-01-13 01:22:40 +00:00
transformational.cpp [flang][runtime] Accept 128-bit integer SHIFT values in CSHIFT/EOSHIFT (#75246) 2023-12-26 15:12:39 -08:00
type-code.cpp
type-info.cpp [flang][runtime] Fix SAME_TYPE_AS()/EXTENDS_TYPE_OF() for CLASS(*) (#67727) 2023-10-17 08:20:38 -07:00
type-info.h
unit-map.cpp
unit-map.h
unit.cpp [flang][runtime] Don't use -1 in I/O API for "default unit" (#76642) 2024-01-02 09:44:16 -08:00
unit.h [flang][runtime] Support READ after WRITE w/o positioning (#74650) 2023-12-11 12:56:34 -08:00
utf.cpp
utf.h