diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 19:21:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 19:21:19 +0000 |
| commit | 54039c1fb44b691abe94fc412696bdc5e14d0a93 (patch) | |
| tree | 0cba7777ee68eb52795608867e6dc07465f4cecd | |
| parent | slave: fix debug logging (no 'term' variable) (diff) | |
slave: log child's errno, not parents
| -rw-r--r-- | slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
