gcc/libgfortran
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
..
caf re PR libfortran/89593 (warning "passing argument 3 of ‘_gfortran_caf_{get,send}_by_ref’ from incompatible pointer type" when building libgfortran) 2019-03-05 23:41:39 +01:00
config re PR fortran/88678 (Many gfortran.dg/ieee/ieee_X.f90 test cases fail starting with r267465) 2019-01-30 21:44:35 +01:00
generated re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2019-05-17 19:50:55 +02:00
ieee Update copyright years. 2019-01-01 13:31:55 +01:00
intrinsics libfortran/90038 Reap dead children when wait=.false. 2019-05-19 22:38:11 +03:00
io Allow opening file on multiple units 2019-05-15 21:02:36 +03:00
m4 re PR libfortran/88807 (misleading indentation warnings building libgfortran) 2019-01-12 10:15:54 +01:00
runtime re PR fortran/89843 (CFI_section delivers incorrect result descriptor) 2019-04-14 18:14:58 +00:00
ChangeLog libfortran/90038 Reap dead children when wait=.false. 2019-05-19 22:38:11 +03:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017 Update copyright years. 2018-01-03 11:03:58 +01:00
ChangeLog-2018 Update copyright years. 2019-01-01 13:31:55 +01:00
ISO_Fortran_binding.h gfortran.texi: Add description in sections on TS 29113 and further interoperability with C. 2019-01-12 15:25:52 +00:00
Makefile.am re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2019-05-17 19:24:27 +02:00
Makefile.in libfortran/90038: Use posix_spawn instead of fork 2019-05-17 21:18:04 +03:00
acinclude.m4 Replace sync builtins with atomic builtins 2018-11-22 09:58:29 +02:00
aclocal.m4 Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
c99_protos.h Update copyright years. 2019-01-01 13:31:55 +01:00
config.h.in libfortran/90038 Reap dead children when wait=.false. 2019-05-19 22:38:11 +03:00
configure libfortran/90038 Reap dead children when wait=.false. 2019-05-19 22:38:11 +03:00
configure.ac libfortran/90038 Reap dead children when wait=.false. 2019-05-19 22:38:11 +03:00
configure.host
gfortran.map re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2019-05-17 19:24:27 +02:00
kinds-override.h Update copyright years. 2019-01-01 13:31:55 +01:00
libgfortran.h re PR fortran/45424 ([F08] Add IS_CONTIGUOUS intrinsic) 2019-01-07 19:30:28 +00:00
libgfortran.spec.in
libtool-version
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh