In article <4DD39547.9010707%julipedia.org@localhost>, Julio Merino <jmmv%julipedia.org@localhost> wrote: >On 5/18/11 4:15 AM, Christos Zoulas wrote: >> Module Name: src >> Committed By: christos >> Date: Wed May 18 03:15:12 UTC 2011 >> >> Modified Files: >> src/tests/syscall: t_pselect.c >> >> Log Message: >> Don't depend on the atf timeout stuff, do it ourselves. > >Why? Could atf do something better here? 1. It did not work. What units is the timeout anyway? I waited 2 seconds and 2 minutes and it did not fire. 2. I need to do some cleanup if there is a timeout (kill the stuck process). How do I register a cleanup function? 3. No matter how the timeout is done (unless you start a watcher process and kill -KILL the test process) it can break (masking signal mask, changing timers, catching signal). christos