messages: replace "child" with "command" for clarity

This commit is contained in:
Albert S. 2020-08-20 13:33:33 +02:00
parent 875c176cc1
commit da1f55e340

View File

@ -406,11 +406,11 @@ void handle_event(struct inotify_event *event)
free(eventfile_abspath); free(eventfile_abspath);
return; return;
} }
logwrite("Starting execution of child %s\n", prog); logwrite("Starting execution of command %s\n", prog);
bool r = run_prog(eventfile_abspath, event->mask); bool r = run_prog(eventfile_abspath, event->mask);
if(!r) if(!r)
{ {
logerror("Execution of child %s failed\n", prog); logerror("Execution of command %s failed\n", prog);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@ -661,7 +661,7 @@ void child_handler(int signum, siginfo_t *info, void *context)
} }
if(must_exit) if(must_exit)
{ {
logwrite("child exited with specified exit code, exiting too\n"); logwrite("command exited with specified exit code, exiting too\n");
exit(adhocify_exit_code); exit(adhocify_exit_code);
} }
} }