|
From: | Paul Eggert |
Subject: | Re: closed file descriptors on HP-UX |
Date: | Thu, 3 Jan 2019 10:49:49 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
Bruno Haible wrote:
On HP-UX 11.31, however, the exec() call transforms a closed file descriptor to a file descriptor that behaves identically to /dev/null, regarding fstat and fcntl.
Does this happen for all file decriptors, or only for file descriptors 0, 1, and 2? If the latter, then HP-UX mostly conforms to POSIX except for its weird behavior on 'read', as the POSIX spec for execlp says that if one of these file descriptors are closed, the execed process may see them open on an unspecified file.
[Prev in Thread] | Current Thread | [Next in Thread] |