summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
Diffstat (limited to 'term')
-rw-r--r--term/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/term/main.c b/term/main.c
index 69248fb0..516a2dcf 100644
--- a/term/main.c
+++ b/term/main.c
@@ -230,6 +230,8 @@ parse_opt (int opt, char *arg, struct argp_state *state)
free (tty_arg);
tty_arg = strdup (v->arg);
error_t err = (*bottom->init) ();
+ if (err == 0 && (termflags & TTY_OPEN))
+ err = (*bottom->assert_dtr) ();
mutex_unlock (&global_lock);
return err;
}