diff options
| author | Thien-Thi Nguyen | 2005-05-01 11:34:54 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2005-05-01 11:34:54 +0000 |
| commit | a72c2d97a8df00371150fe9d3dffd84559fd0479 (patch) | |
| tree | 2b92e09e2d65d60decd16627136e9a97d7fe18be /src/sysdep.c | |
| parent | b7f29772f5818da4d7d69ae5e85e48052f390038 (diff) | |
| download | emacs-a72c2d97a8df00371150fe9d3dffd84559fd0479.tar.gz emacs-a72c2d97a8df00371150fe9d3dffd84559fd0479.zip | |
(get_frame_size) [VMS]: Use a fresh i/o channel.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index e7494a2755d..42179d97e82 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1718,10 +1718,16 @@ get_frame_size (widthp, heightp) | |||
| 1718 | #else | 1718 | #else |
| 1719 | #ifdef VMS | 1719 | #ifdef VMS |
| 1720 | 1720 | ||
| 1721 | /* Use a fresh channel since the current one may have stale info | ||
| 1722 | (for example, from prior to a suspend); and to avoid a dependency | ||
| 1723 | in the init sequence. */ | ||
| 1724 | int chan; | ||
| 1721 | struct sensemode tty; | 1725 | struct sensemode tty; |
| 1722 | 1726 | ||
| 1723 | SYS$QIOW (0, input_fd, IO$_SENSEMODE, &tty, 0, 0, | 1727 | SYS$ASSIGN (&input_dsc, &chan, 0, 0); |
| 1724 | &tty.class, 12, 0, 0, 0, 0); | 1728 | SYS$QIOW (0, chan, IO$_SENSEMODE, &tty, 0, 0, |
| 1729 | &tty.class, 12, 0, 0, 0, 0); | ||
| 1730 | SYS$DASSGN (chan); | ||
| 1725 | *widthp = tty.scr_wid; | 1731 | *widthp = tty.scr_wid; |
| 1726 | *heightp = tty.scr_len; | 1732 | *heightp = tty.scr_len; |
| 1727 | 1733 | ||