Xref: utzoo comp.lang.c:13833 comp.unix.questions:10070 Path: utzoo!utgpu!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re: Delay for a fraction of a second in C Message-ID: <399@auspex.UUCP> Date: 4 Nov 88 17:51:09 GMT References: <2804@ingr.UUCP> <965@goofy.megatest.UUCP> Reply-To: guy@auspex.UUCP (Guy Harris) Followup-To: comp.unix.questions Organization: Auspex Systems, Santa Clara Lines: 13 >Pour yourself a cup of strong coffee, then try the following: And watch it fail to compile on many systems. Unfortunately, neither "select" nor "setitimer" exist on all UNIX systems. (They also tend not to exist on non-UNIX systems, which is why this discussion is getting sent back to comp.unix.questions, where it belongs.) However, you can use "poll" instead of "select" on System V Release 3, so at least there you can block for an amount of time < 1 second (although there still isn't a way to get a signal delivered after an interval of < 1 second in vanilla S5R3).