Commit graph

30 commits

Author SHA1 Message Date
Andrea Mazzoleni
a39fb132f8 Normalize comment style
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-10-07 09:14:01 +02:00
Andrea Mazzoleni
d92d296bcd Lock unsafe command-line options after enabling --lock-options 2026-09-18 10:00:41 +02:00
Andrea Mazzoleni
9f48c87dd4 Encapsulate race-safe process slot synchronization and termination in OS layer for Unix and Windows 2026-09-14 15:00:20 +02:00
Andrea Mazzoleni
21ca93f8c1 Explicitly cast sig_atomic_t child_pid to pid_t for kill() 2026-08-26 10:47:19 +02:00
Andrea Mazzoleni
b3dc7e55c1 Use dedicated scriptcat() for cmd.exe batch parameter serialization in os_script() 2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
3c88559379 Quote empty arguments in Windows command line generation 2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
9c93cbfcaa Forward configuration file options to spindown on error 2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
1c3f695d5a Isolate child process group with setpgid to prevent double signal delivery 2026-08-18 23:33:57 +02:00
Andrea Mazzoleni
821756371c Block signal delivery across fork to prevent signal forwarding race condition in main.c 2026-08-18 23:33:56 +02:00
Andrea Mazzoleni
ff0a4a444a Fix leak on error in argutf8 2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
e51a29927a Pass element count instead of byte count to WCHAR buffer bounds 2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
5edf0b2c03 Synchronize child_process updates using interlocked Win32 APIs 2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
00b4cbafd0 Merge the CLI and Daemon portable interface 2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
c814b474be Remove the misleading Flush message in nix 2026-06-03 18:24:18 +02:00
Andrea Mazzoleni
0d0431a907 Simpler Copyright string 2026-04-09 17:56:49 +02:00
Christoph Hellwig
60269a1236 Use SPDX (https://spdx.dev/) tags to identify the license used for each
file, and a COPYING file explaining the licensing scheme, with the actual
licenses listed in the LICENSES/ directory.
2026-04-02 16:01:37 +02:00
Andrea Mazzoleni
b29500c25f Update beautification with uncrustify 2026-01-22 16:13:25 +01:00
Andrea Mazzoleni
d46a2402b6 Beautify code with uncrustify 2026-01-05 15:59:03 +01:00
Andrea Mazzoleni
005ee9d416 Don't flush also when restarting 2026-01-04 18:01:19 +01:00
Andrea Mazzoleni
d452b109bc More regression tests
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
2025-10-28 12:15:50 +01:00
Andrea Mazzoleni
8ae0599c64 Fix quoting for printed file paths
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
2025-10-27 01:07:38 +01:00
Andrea Mazzoleni
21acc31bf1 Beautify code with uncrustify 2025-10-26 18:11:45 +01:00
Andrea Mazzoleni
b549bffd4c Flush disks before the emergency spindown 2025-10-26 10:38:43 +01:00
Andrea Mazzoleni
1552f892d3 Don't forward Windows events to the child. It already receives them.
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
2025-10-21 00:35:28 +02:00
Andrea Mazzoleni
1aba628477 Fix command line handling in Windows
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
2025-10-18 16:22:10 +02:00
Andrea Mazzoleni
ce2ad1e9c1 Handle SIGPIPE when spinning down
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
2025-10-18 11:45:31 +02:00
Andrea Mazzoleni
e00342557e Exit with an error code if Ctrl+C is pressed 2025-10-17 10:07:51 +02:00
Andrea Mazzoleni
b4c96e5afa Handle signals in fork 2025-10-17 08:49:05 +02:00
Andrea Mazzoleni
adce4ce5f7 Use /proc/self/exe to restart itself 2025-10-16 16:13:13 +02:00
Andrea Mazzoleni
bb2b84d21a Add a new -s, --spin-down-on-error option
Also handle correctly chars outside the Windows codepage as arguments.
2025-09-26 09:50:10 +02:00