diff src/sysdep.c @ 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 32504a982bfc
children a8fa7c632ee4 effe22690419 08185296b491
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;