From: MERC::"uunet!WKUVX1.BITNET!MacroMan" 23-APR-1992 14:51:43.96 To: MACRO32%WKUVX1.BITNET@TGV.COM CC: Subj: Re: how to read keystrokes from a process that is hibernated or what? >Issue a $QIO specifying an AST routine that calls $WAKE. Then call $HIBER. >When the I/O completes, the AST routine will be called, and this will then wake >the process. You might have trouble with a race condition if the I/O completes >before your call to $HIBER takes effect. The AST's $WAKE call should set the process's wake-pending bit, so the HIBER call will complete immediately even if the $WAKE call occures first. To explicitely clear the WAKE_PENDING bit, you can do this: SYS$WAKE(0,0); SYS$HIBER(); -bruce ---------------------------------------------------------------------------- Bruce R'. Miller, MILLER@TGV.COM (408) 427-4366 in Santa Cruz CA "And through the wire, we can talk..." - PG