spiegel_podman/pkg/pidhandle
Paul Holzinger d20933df02
add missing O_CLOEXEC to open calls
The go std os package to will always make sure to use O_CLOEXEC, however
in cases where we directly call unix.Open() we need to pass that flag
explicitly.

I looked at this as there was a report of a leaked fd on the pasta list,
though I am not sure this will address it.

But anyway doing this should be rather safe and avoid leaks into other
processes.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-02 15:06:37 +02:00
..
pidhandle.go Verify the ExecSession pid before killing it. 2025-05-06 06:24:13 +02:00
pidhandle_linux.go add missing O_CLOEXEC to open calls 2026-04-02 15:06:37 +02:00
pidhandle_linux_test.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
pidhandle_unix.go Verify the ExecSession pid before killing it. 2025-05-06 06:24:13 +02:00