changeset 61960:c22f4309603e

(get_frame_size) [VMS]: Use a fresh i/o channel.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Sun, 01 May 2005 11:32:49 +0000
parents 055bdb7f1335
children 298041078f86
files src/sysdep.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sun May 01 11:05:08 2005 +0000
+++ b/src/sysdep.c	Sun May 01 11:32:49 2005 +0000
@@ -1718,10 +1718,16 @@
 #else
 #ifdef VMS
 
+  /* Use a fresh channel since the current one may have stale info
+     (for example, from prior to a suspend); and to avoid a dependency
+     in the init sequence.  */
+  int chan;
   struct sensemode tty;
 
-  SYS$QIOW (0, input_fd, IO$_SENSEMODE, &tty, 0, 0,
-	    &tty.class, 12, 0, 0, 0, 0);
+  SYS$ASSIGN (&input_dsc, &chan, 0, 0);
+  SYS$QIOW (0, chan, IO$_SENSEMODE, &tty, 0, 0,
+            &tty.class, 12, 0, 0, 0, 0);
+  SYS$DASSGN (chan);
   *widthp = tty.scr_wid;
   *heightp = tty.scr_len;