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
..
2025-12-12 15:21:42 -05:00
2025-04-28 14:26:07 -04:00
2025-09-04 17:58:27 -04:00
2025-09-04 17:58:27 -04:00
2025-09-04 17:58:27 -04:00
2025-01-28 17:36:51 -05:00
2026-03-08 12:12:44 -04:00
2026-01-09 15:47:12 -05:00
2025-12-12 15:21:42 -05:00
2026-01-16 10:54:48 -05:00
2025-02-05 14:33:06 -05:00
2026-01-14 16:52:36 -05:00
2026-02-11 19:27:22 -05:00
2025-08-25 19:13:25 -04:00
2025-09-12 15:16:06 -04:00
2025-08-20 17:01:09 -04:00
2026-01-14 10:48:04 -05:00
2026-01-14 10:48:04 -05:00
2025-08-21 14:12:20 -04:00
2026-01-08 22:37:24 -05:00
2025-09-12 15:16:06 -04:00
2025-09-03 15:34:26 -04:00
2025-08-22 20:21:36 -04:00
2025-12-17 18:02:19 -05:00
2025-09-03 15:34:26 -04:00
2025-09-03 14:14:49 -04:00
2025-08-22 16:01:13 -04:00
2025-08-28 14:29:10 -04:00
2025-09-03 15:34:26 -04:00
2026-02-04 18:53:59 -05:00
2025-12-12 15:21:42 -05:00
2025-09-03 15:34:26 -04:00
2025-11-07 17:07:14 -05:00
2025-08-22 21:11:53 -04:00
2025-02-28 16:29:57 -05:00
2025-12-12 15:21:42 -05:00
2026-01-16 15:57:36 -05:00
2025-04-02 12:39:46 -04:00