feat: daemon service with IPC handlers, cleanup timer and reload (M4 part 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e07e6acbe2
commit
01a3fbfa29
6 files changed
+704
-1
No files matched your search
@@ -56,6 +56,14 @@ pub fn appendLog(io: Io, job_dir: Dir, sub_path: []const u8, line: []const u8) !
|
||||
try f.writeStreamingAll(io, "\n");
|
||||
}
|
||||
|
||||
pub fn currentPid() i64 {
|
||||
return switch (builtin.os.tag) {
|
||||
.linux => std.os.linux.getpid(),
|
||||
.windows, .wasi => 0,
|
||||
else => std.c.getpid(),
|
||||
};
|
||||
}
|
||||
|
||||
pub const Signal = enum { term, kill };
|
||||
|
||||
/// Signals the process group led by `pid`, falling back to the single process.
|
||||
|
||||
Reference in new issue
Block a user