gcc/libgfortran/intrinsics
Janne Blomqvist ef536b413e libfortran/90038 Reap dead children when wait=.false.
When using posix_spawn or fork to launch a child process, the parent
needs to wait for the child, otherwise the dead child is left as a
zombie process. For this purpose one can install a signal handler for
SIGCHLD.

2019-05-19  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/90038
	* intrinsics/execute_command_line (sigchld_handler): New function.
        (execute_command_line): Install handler for SIGCHLD.
        * configure.ac: Check for presence of sigaction and waitpid.
        * config.h.in: Regenerated.
        * configure: Regenerated.

Regtested on x86_64-pc-linux-gnu.

From-SVN: r271384
2019-05-19 22:38:11 +03:00
..
abort.c
access.c
args.c
associated.c
c99_functions.c
chdir.c
chmod.c
clock.c
cpu_time.c
cshift0.c
ctime.c
date_and_time.c
dprod_r8.f90
dtime.c
env.c
eoshift0.c
eoshift2.c
erfc_scaled.c
erfc_scaled_inc.c
etime.c
execute_command_line.c libfortran/90038 Reap dead children when wait=.false. 2019-05-19 22:38:11 +03:00
exit.c
extends_type_of.c
f2c_specifics.F90
fnum.c
gerror.c
getXid.c
getcwd.c
getlog.c
hostnm.c
ierrno.c
is_contiguous.c re PR fortran/45424 ([F08] Add IS_CONTIGUOUS intrinsic) 2019-01-07 19:30:28 +00:00
ishftc.c
kill.c
link.c
move_alloc.c
mvbits.c
pack_generic.c
perror.c
rand.c
random.c
random_init.f90
rename.c
reshape_generic.c
reshape_packed.c
selected_char_kind.c
selected_int_kind.f90
selected_real_kind.f90
signal.c
size.c
sleep.c
spread_generic.c
stat.c
string_intrinsics.c
string_intrinsics_inc.c
symlnk.c
system.c
system_clock.c
time.c
time_1.h
umask.c
unlink.c
unpack_generic.c