Overview
| Artifact ID: | 82233f7175773facd4478f6fa64d5c13d325db2f662a8837655bce5d4918edbf |
|---|---|
| Ticket: | 407b70361c1487732ef3e1fff67d61e60903431a
New test failures. Maybe unix pipe troubles? |
| User & Date: | chw on 2024-05-22 14:14:20 |
Changes
- closedate changed to: "2460453.09329715"
- closer changed to: "chw"
- icomment:
Let me explain what the change is for in regard to exec-17.1: The test constructs a scenario where posix_spawn_file_actions_adddup2(&actions, 1, 1) is set where the file descriptor 1 has the FD_CLOEXEC set due to stdout being closed and a plain file opened. When this call does nothing or fails (since we're dup'ing 1 to 1) the exec does not get passed file descriptor 1 anymore (remember FD_CLOEXEC still set) and the test fails. Are there any guarantees in p_s_f_a_a() regarding this case? I think not, and this potentially varies between C lib versions. So it is not a bad idea to catch these special cases for the file descriptors 0, 1, and 2. BTW: I observed it in my AndroWish branch on Debian 9 which is quite old indeed. Did the patch break things in different ways on other (newer) systems?
- login: "chw"
- mimetype: "text/x-fossil-plain"