Paul Eggert
717f1d02e1
sort: file descriptor discipline
...
Use O_CLOEXEC when creating file descriptors, so that subsidiary
processes do not inherit file descriptors that they do not need.
This is helpful for ‘sort’, as it is a multithreaded program that
forks and execs.
* bootstrap.conf (gnulib_modules): Add mkostemp, open, pipe2.
* src/sort.c (create_temp_file): Open temporary file with O_CLOEXEC.
(stream_open): Open the stream with O_CLOEXEC.
(pipe_fork): Create the pipe with O_CLOEXEC.
(check_output): Open the output file with O_CLOEXEC.
(main): Use xfopen/xfclose to handle --files0-from, so that
O_CLOEXEC is used properly. This is simpler anyway.
* tests/misc/sort-files0-from.pl: Adjust to change in diagnostic
wording.
2017-08-17 12:03:03 -07:00
..
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-03-27 21:23:07 -07:00
2017-01-01 22:38:02 +00:00
2017-04-22 02:47:21 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-26 21:49:12 -07:00
2017-01-20 18:24:54 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-02 16:35:08 -07:00
2017-06-28 01:23:52 +00:00
2017-06-28 01:23:52 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-07-08 18:41:16 +02:00
2017-07-10 10:17:57 +02:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-03-27 20:32:58 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-02-26 09:31:50 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-08-13 21:31:28 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-08-13 21:31:57 -07:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-17 19:44:30 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-03-11 10:48:10 -08:00
2017-08-13 21:32:11 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-08-17 12:03:03 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-09 15:15:04 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-07-23 12:23:31 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-09 15:15:04 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-05 11:35:35 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00