[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] bug#33965: handling of closed file descriptors
From: |
Bruno Haible |
Subject: |
[bug-diffutils] bug#33965: handling of closed file descriptors |
Date: |
Thu, 03 Jan 2019 20:42:28 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
There is a problem with the handling of closed file descriptors
in diff-3.7: As mentioned in [1], the 'new-file' test fails on HP-UX.
An investigation [2] shows that different coding techniques are needed,
depending on the desired outcome for closed file descriptors.
This patch uses a variant of (A) from [2]. Namely, the result of fcntl
can apparently be used to distinguish the substitute file descriptor
stuffed in by exec() from a regular open("/dev/null",O_RDONLY).
[1] https://lists.gnu.org/archive/html/diffutils-devel/2018-12/msg00019.html
[2] https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00012.html
0001-Recognize-file-descriptors-closed-by-the-parent-proc.patch
Description: Text Data
- [bug-diffutils] bug#33965: handling of closed file descriptors,
Bruno Haible <=
- [bug-diffutils] bug#33965: handling of closed file descriptors, Bruno Haible, 2019/01/03
- [bug-diffutils] bug#33965: bug#33965: handling of closed file descriptors, Jim Meyering, 2019/01/04
- [bug-diffutils] bug#33965: bug#33965: bug#33965: handling of closed file descriptors, Paul Eggert, 2019/01/04
- [bug-diffutils] bug#33965: bug#33965: handling of closed file descriptors, Bruno Haible, 2019/01/04
- [bug-diffutils] bug#33965: bug#33965: handling of closed file descriptors, Paul Eggert, 2019/01/04
- [bug-diffutils] bug#33965: bug#33965: handling of closed file descriptors, Bruno Haible, 2019/01/05
- [bug-diffutils] bug#33965: handling of closed file descriptors, Bruno Haible, 2019/01/05
- [bug-diffutils] bug#33965: handling of closed file descriptors, Paul Eggert, 2019/01/05
- Message not available
- [bug-diffutils] bug#33965: handling of closed file descriptors, Paul Eggert, 2019/01/06