summaryrefslogtreecommitdiff
path: root/term/devio.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-01 19:52:35 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-01 19:52:35 +0000
commit1ede3ec68026e85dbaa3c4d67cb8013e6df1032b (patch)
tree68e2058960ba57ce62207325c1d48b993b88e828 /term/devio.c
parent389eeba0672c3ab7b12fec9cbcd6a7298a678c52 (diff)
(devio_suspend_physical_output): Only if not already stopped.
Diffstat (limited to 'term/devio.c')
-rw-r--r--term/devio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/term/devio.c b/term/devio.c
index 870f969c..b813178b 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -354,8 +354,11 @@ devio_abandon_physical_output ()
static void
devio_suspend_physical_output ()
{
- device_set_status (phys_device, TTY_STOP, 0, 0);
- output_stopped = 1;
+ if (!output_stopped)
+ {
+ device_set_status (phys_device, TTY_STOP, 0, 0);
+ output_stopped = 1;
+ }
}