Permalink
Browse files

add mon pid log

  • Loading branch information...
1 parent 2834819 commit 49693c2ce0a874b7a6a059ca4c3d1a380494616f @tj committed Sep 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mon.c
View
@@ -216,7 +216,7 @@ exec: {
perror("execl()");
exit(1);
default:
- log("pid %d", pid);
+ log("child %d", pid);
// write pidfile
if (monitor->pidfile) {
@@ -370,6 +370,8 @@ main(int argc, char **argv){
command_option(&program, "-e", "--on-error <cmd>", "execute <cmd> on errors", on_error);
command_parse(&program, argc, argv);
+ log("pid %d", getpid());
+
// command required
if (!program.argc) error("<cmd> required");
const char *cmd = program.argv[0];

0 comments on commit 49693c2

Please sign in to comment.