Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: VANILLAKEYS and various other things Message-ID: <78867@sun.uucp> Date: 22 Nov 88 23:45:57 GMT References: <8811200120.AA29916@postgres.Berkeley.EDU> <1769@scolex> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 18 In article <1769@scolex> brianm@sco.COM (Brian Moffet) writes: >It is this wait that returns immediatly. I then do a GetMsg() >to see what happened, and GetMsg() returns NULL. the >only thing I can assume is the signal is not cleared. Right-o. And you don't have to even assume it, it's documented that Wait() clears signals and GetMsg() doesn't do anything to signals. The CLOSEWINDOW message sets the signal, you read it before looking at the signal, then when you go to check the signal with a Wait() it returns immediately because the signal is set but the message has already been processed hence the null return from GetMsg(). --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.