aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:20:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:20:56 +0000
commit98ccd01c1b9f273c26466afcfba6f50c57e74cbb (patch)
treeef65c08c451239cf72ab835463f510508a35b514
parentwayland: xdg_toplevel_close(): call term_shutdown() (diff)
slave: fix debug logging (no 'term' variable)
-rw-r--r--slave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slave.c b/slave.c
index df784a7f..a4ff67a1 100644
--- a/slave.c
+++ b/slave.c
@@ -107,7 +107,7 @@ slave_spawn(int ptmx, int argc, char *const *argv,
default: {
close(fork_pipe[1]); /* Close write end */
- LOG_DBG("slave has PID %d", term->slave);
+ LOG_DBG("slave has PID %d", pid);
int _errno;
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]);
return -1;
} else
- LOG_DBG("%s: successfully started", conf->shell);
+ LOG_DBG("%s: successfully started", conf_shell);
break;
}
}