[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] bug#33965: bug#33965: bug#33965: handling of closed file

From: Paul Eggert
Subject: [bug-diffutils] bug#33965: bug#33965: bug#33965: handling of closed file descriptors
Date: Fri, 4 Jan 2019 14:42:21 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

I'd rather think of this as a bug in the test case, not a bug in 'diff'. This is because the test case assumes more about the shell's "<&-" construct than what POSIX requires.

The bigger picture here is that invoking programs with stdin closed is trouble, and although Gnulib provides several modules to work around the trouble these modules are a hassle and many applications don't use them. We should encourage platforms like HP-UX that try to work around the trouble, instead of having diffutils attempt to simulate the traditional but inferior exec semantics. Although the Linux kernel currently implements the traditional semantics, in this particular case I think I'd rather have diffutils adjust to what the platform provides, rather than attempt to simulate Linux behavior even on non-Linux kernels.

So I propose the attached further patch.

Attachment: 0001-diff-move-HP-UX-workaround-into-test-case.txt
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]