Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function warn(msg: string): void {

function ensurePidDir(pidDir: string): void {
if (!existsSync(pidDir)) {
mkdirSync(pidDir, { recursive: true });
mkdirSync(pidDir, { recursive: true, mode: 0o700 });
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
}

Expand Down Expand Up @@ -123,7 +123,7 @@ function startService(
// Uses child_process.spawn directly because execa's typed API
// does not accept raw file descriptors for stdio.
const logFile = join(pidDir, `${name}.log`);
const logFd = openSync(logFile, "w");
const logFd = openSync(logFile, "w", 0o600);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
const subprocess = spawn(command, args, {
detached: true,
stdio: ["ignore", logFd, logFd],
Expand Down