mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
slave: log _which_ CWD we failed to change to
This commit is contained in:
parent
3990cd4392
commit
064121ee95
1 changed files with 1 additions and 1 deletions
2
slave.c
2
slave.c
|
|
@ -269,7 +269,7 @@ slave_spawn(int ptmx, int argc, const char *cwd, char *const *argv,
|
|||
|
||||
if (chdir(cwd) < 0) {
|
||||
const int errno_copy = errno;
|
||||
LOG_ERRNO("failed to change working directory");
|
||||
LOG_ERRNO("failed to change working directory to %s", cwd);
|
||||
(void)!write(fork_pipe[1], &errno_copy, sizeof(errno_copy));
|
||||
_exit(errno_copy);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue