mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
slave: log child's errno, not parents
This commit is contained in:
parent
98ccd01c1b
commit
54039c1fb4
1 changed files with 2 additions and 2 deletions
4
slave.c
4
slave.c
|
|
@ -119,8 +119,8 @@ slave_spawn(int ptmx, int argc, char *const *argv,
|
|||
LOG_ERRNO("failed to read from pipe");
|
||||
return -1;
|
||||
} else if (ret == sizeof(_errno)) {
|
||||
LOG_ERRNO(
|
||||
"%s: failed to execute", argc == 0 ? conf_shell : argv[0]);
|
||||
LOG_ERRNO_P(
|
||||
"%s: failed to execute", _errno, argc == 0 ? conf_shell : argv[0]);
|
||||
return -1;
|
||||
} else
|
||||
LOG_DBG("%s: successfully started", conf_shell);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue