mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
slave: fix debug logging (no 'term' variable)
This commit is contained in:
parent
2e0888bf3d
commit
98ccd01c1b
1 changed files with 2 additions and 2 deletions
4
slave.c
4
slave.c
|
|
@ -107,7 +107,7 @@ slave_spawn(int ptmx, int argc, char *const *argv,
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
close(fork_pipe[1]); /* Close write end */
|
close(fork_pipe[1]); /* Close write end */
|
||||||
LOG_DBG("slave has PID %d", term->slave);
|
LOG_DBG("slave has PID %d", pid);
|
||||||
|
|
||||||
int _errno;
|
int _errno;
|
||||||
static_assert(sizeof(errno) == sizeof(_errno), "errno size mismatch");
|
static_assert(sizeof(errno) == sizeof(_errno), "errno size mismatch");
|
||||||
|
|
@ -123,7 +123,7 @@ slave_spawn(int ptmx, int argc, char *const *argv,
|
||||||
"%s: failed to execute", argc == 0 ? conf_shell : argv[0]);
|
"%s: failed to execute", argc == 0 ? conf_shell : argv[0]);
|
||||||
return -1;
|
return -1;
|
||||||
} else
|
} else
|
||||||
LOG_DBG("%s: successfully started", conf->shell);
|
LOG_DBG("%s: successfully started", conf_shell);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue