Commit graph

19 commits

Author SHA1 Message Date
Andrea Mazzoleni
f908b122a5 Replace malloc with alloca in fork child exec path for async-signal safety 2026-08-10 13:26:29 +02:00
Andrea Mazzoleni
e1f6ddfe15 Comment explaining why CLOSE_RANGE_CLOEXEC is safe for fexecve binaries in os_spawn 2026-08-10 13:26:29 +02:00
Andrea Mazzoleni
8299a30475 Remove libblkid support and build dependency 2026-08-10 12:08:04 +02:00
Andrea Mazzoleni
78bcfaaa04 Guard lower close_range call with fd > 3 in os_exec_script 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
ae1fe46ea8 Replace VLA envp_dynamic with malloc in fork child exec path 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
d47a7fa6ff Add comments explaining Windows Service console attachment flow in os_term 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
52dbb0a8cf Comment about process resource in os_term/os_kill on Windows 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
2566ddbc69 Add fallback to kill(pid, sig) when process group signaling returns ESRCH in os_term and os_kill 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
58d75feea4 Configure PR_SET_PDEATHSIG on Linux and Job Objects on Windows to prevent orphaned subprocesses on program crash 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
8c128c1bc3 Support filesystems with invalid inode numbers on individual files 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
cd39ccf752 Silence clang static analyzer warnings 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
52c00ea982 Add bounded retry with exponential backoff for ERROR_NO_SYSTEM_RESOURCES 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
9312712a28 Add new os_kill 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
0c1852ebd0 Add CREATE_NO_WINDOW flag to process creation in os_spawn 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
baf6417a31 Make os_abort to log to os_syslog 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
2fbfbc1eae Sanitize addr2line binary path via strspn whitelist before system call 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
9098e1c4fd Sync the OS interface with the daemon 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
dfef6a363e Abort on privilege switch failures unless errno is EPERM 2026-08-10 11:23:13 +02:00
Andrea Mazzoleni
f19d00c93e Merge the CLI and Daemon portable interface 2026-08-10 11:23:13 +02:00