projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
procd: Add %m to several functions that return errno.
[project/procd.git]
/
inittab.c
diff --git
a/inittab.c
b/inittab.c
index
c27c324
..
55554b9
100644
(file)
--- a/
inittab.c
+++ b/
inittab.c
@@
-104,7
+104,7
@@
static void fork_worker(struct init_action *a)
tcsetpgrp(STDIN_FILENO, p);
execvp(a->argv[0], a->argv);
tcsetpgrp(STDIN_FILENO, p);
execvp(a->argv[0], a->argv);
- ERROR("Failed to execute %s\n", a->argv[0]);
+ ERROR("Failed to execute %s
: %m
\n", a->argv[0]);
exit(-1);
}
exit(-1);
}
@@
-278,7
+278,7
@@
void procd_inittab(void)
char *line;
if (!fp) {
char *line;
if (!fp) {
- ERROR("Failed to open %s\n", tab);
+ ERROR("Failed to open %s
: %m
\n", tab);
return;
}
return;
}