From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A5C9454.9080801@tecmav.com> Date: Tue, 14 Jul 2009 16:21:08 +0200 From: Adriano Verardo User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080213 MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [9fans] A question about timeout Topicbox-Message-UUID: 1fc18c14-ead5-11e9-9d60-3106f5b1d025 I'm porting some Unix applications which implement a timeout on read/write/accept/... calls using select(). In previous versions I did the same by signals but with problems due to the behaviour of the interrupted system call. Select() is also used to choose among channels waiting for I/O. How can I implement channel selection and secure timeouts without using APE ? Re-write some pieces is not a problem, I prefer a "pure" 8c implementation. adriano