Hoshino Lina
49708181b5
libobs/util: Fix fd management in os_process_pipe_create
...
The sequence should be the same for every fd:
- Close the parent end of the pipe
- If the child end of the pipe is not the intended fd already,
- Dup it over
- And close the old fd
This fixes a double-close() in the read path (which is fairly harmless
since it happens in the child, but sticks out in strace), some fd
leakage, and the stderr-already-is-2 case.
2026-03-08 12:12:44 -04:00
..
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2025-05-19 19:25:56 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2025-08-20 19:06:11 -04:00
2024-08-28 19:10:27 -04:00
2025-09-12 13:46:58 -04:00
2024-10-04 18:19:27 -04:00
2025-08-25 19:13:25 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2023-11-25 17:04:47 -06:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-05 16:49:23 -07:00
2023-05-20 01:31:18 -07:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2026-03-08 12:12:44 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-02-10 17:10:25 -06:00
2026-01-14 13:47:30 -05:00
2024-12-09 18:05:17 -05:00
2025-09-04 16:57:07 -04:00
2025-09-17 16:29:06 -04:00
2024-10-04 18:19:27 -04:00
2025-08-20 19:06:11 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2025-08-21 15:22:08 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2025-01-24 15:28:57 -05:00
2024-10-04 18:19:27 -04:00
2025-04-17 18:16:33 +02:00
2026-01-14 13:47:30 -05:00
2023-05-20 01:31:18 -07:00
2024-10-04 18:19:27 -04:00
2024-10-04 18:19:27 -04:00
2024-04-07 10:01:25 +10:00
2023-04-16 20:29:47 -04:00
2023-05-20 01:31:18 -07:00
2024-10-04 18:19:27 -04:00