summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-21 03:42:59 +0000
committerRoland McGrath <roland@gnu.org>2002-11-21 03:42:59 +0000
commit95600b7688c43072ee913efae310efb4dd8e806e (patch)
tree1bda7d147b2b4ac47e7d14960b6cae7523631a44 /term
parent3172e37a067284625074fb30d470bcf6e56a05cc (diff)
2002-11-20 Roland McGrath <roland@redhat.com>
* main.c (parse_opt : case ARGP_KEY_SUCCESS): After initializing a new bottomhalf, call its assert_dtr hook if TTY_OPEN is set in termflags.
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;
}