Files
obs-studio/libobs
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
..
2022-07-19 09:28:51 -03:00
2026-01-14 16:52:36 -05:00
2023-05-20 01:31:18 -07:00
2025-09-03 15:34:26 -04:00
2025-08-22 20:21:36 -04:00
2025-11-07 17:07:14 -05:00
2025-08-22 21:11:53 -04:00
2025-12-12 15:21:42 -05:00
2026-01-16 15:57:36 -05:00