Skip to content

Commit 810a676

Browse files
committed
ensure that we compute the pidfile before we write the plist
whoops
1 parent ce411a5 commit 810a676

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ static void spawn_via_launchd(void)
452452
abort();
453453
}
454454

455+
compute_file_name(&pid_file, compute_user_name(), "pid", "pidfile");
456+
455457
fprintf(fp,
456458
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
457459
"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" "

0 commit comments

Comments
 (0)