Commit Graph

5 Commits

Author SHA1 Message Date
Edward Thomson
e78eec28c3 vector: free is now dispose
In keeping with the libgit2 pattern, we _dispose_ a structure that is
not heap allocated, and _free_ a structure's contents _and the structure
itself_.
2024-09-30 21:28:36 +01:00
Edward Thomson
cc965243d6 process: test /usr/bin/false on BSDs
Our process tests were previously testing that false is
`/bin/false` everywhere except macOS, where it exists as
`/usr/bin/false`. . Extend this to all BSDs.
2023-12-13 16:40:00 +00:00
Edward Thomson
d7060aff36 process: provide cmdline-handling and execv style
Provide both cmdline-style handling (passing it to the shell on POSIX,
or directly to CreateProcess on win32) and execv style (passing it
directly to execv on POSIX, and mangling it into a single command-line
on win32).
2023-08-30 20:46:23 +01:00
Edward Thomson
7a8c4d8bd2 process: test SIGTERM detection
We can't reliably detect SIGPIPE on close because of platform
differences. Track `pid` and send `SIGTERM` to a function and ensure
that we can detect it.
2023-08-30 20:46:22 +01:00
Edward Thomson
bc97d01c03 Introduce git_process class that invokes processes 2023-08-30 20:45:13 +01:00