Xref: utzoo comp.unix.questions:13360 comp.unix.wizards:16006 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!athena.mit.edu!adtaiwo From: adtaiwo@athena.mit.edu (Ademola Taiwo) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: "usleep" routine in HP's Message-ID: <11215@bloom-beacon.MIT.EDU> Date: 8 May 89 06:38:50 GMT References: <23340@shemp.CS.UCLA.EDU> <5740041@hpfcdc.HP.COM> <11166@bloom-beacon.MIT.EDU> <17358@mimsy.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: adtaiwo@athena.mit.edu (Ademola Taiwo) Organization: Massachusetts Institute of Technology Lines: 24 In article <17358@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >In article <11166@bloom-beacon.MIT.EDU> adtaiwo@athena.mit.edu >(Ademola Taiwo) writes: >>Okay guys, How does one implement select, sigrelse, sigpause and >>sighold with signals. > >If you have neither a 4.1-style `jobs library' nor 4.2-style signals, >you cannot implement sighold, sigpause, and sigrelse reliably. > >You cannot reliably implement select with anything other than poll(). >-- >In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) >Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris Wait! That is not true. Emacs has implemented select, but only for read fds. There is ecsh, I believe it is the early CSH, correct me if I am wrong, but has Bill Joy written all over it. They implemented sigrelse, sigset and sigignore. The trick was to keep an array of all the available signals and later full around with them. You ma ask what else do I want? sigsetmask. This is the missing link in my search for the 4.2 compat signals library. I can always use the signal facility provided with GNUemacs and not the "standard" library that came with my C compiler. Thanks again.