It is impolite to print stuff to stderror owned by other people, and they might
miss it anyway since it's not in the normal log location.
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
} else {
pid_t w = waitpid(pid, &status, 0);
if (w == -1) {
- perror("waitpid");
+ SYSERROR("waitpid");
return false;
}
pid_t w = waitpid(pid, &status, 0);
if (w == -1) {
- perror("waitpid");
+ SYSERROR("waitpid");
goto out_fini_handler;
}
pipe = -1;
if (sizeof(status) != ret) {
- perror("write");
- ERROR("failed to write all of status");
+ SYSERROR("failed to write all of status");
goto out_fini_handler;
}
int ret;
FILE *f = fopen(pidfile, "r");
if (!f) {
- perror("reading pidfile");
- ERROR("couldn't read restore's init pidfile %s\n", pidfile);
+ SYSERROR("couldn't read restore's init pidfile %s\n", pidfile);
goto out_fini_handler;
}