summaryrefslogtreecommitdiff
path: root/term/main.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-24 22:01:18 +0000
committerMiles Bader <miles@gnu.org>1996-02-24 22:01:18 +0000
commitae116095ae5ce31b4afa06b64be90d6c9da60d42 (patch)
treec8eeeee19a647624e1414f13fd133d6ee27638dd /term/main.c
parentbfaa14615fa880f744a9167d0a626505e8d37b10 (diff)
(main): Call ptyio_init if appropriate.
Diffstat (limited to 'term/main.c')
-rw-r--r--term/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/term/main.c b/term/main.c
index 1f4057a6..d70510ec 100644
--- a/term/main.c
+++ b/term/main.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -130,7 +130,7 @@ main (int argc, char **argv)
fprintf (stderr, "Must be started as a translator\n");
exit (1);
}
-
+
/* Set our node */
errno = trivfs_startup (bootstrap, 0,
ourcntlclass, term_bucket, ourclass, term_bucket,
@@ -180,6 +180,9 @@ main (int argc, char **argv)
inputq = create_queue (256, 100, 300);
rawq = create_queue (256, 100, 300);
outputq = create_queue (256, 100, 300);
+
+ if (bottom == &ptyio_bottom)
+ ptyio_init ();
condition_init (&carrier_alert);
condition_init (&select_alert);