in reply to Callbacks for Timeouts

I don't want to use SIGALARM. Is there any other way?

If you don't want to use alarm, then the the general solution used for this type of timer interrupt is called an "event loop" system. Gui's like Tk, Wx, Gtk2, and non -gui's like Poe, and Glib are your best solutions..... see Roll your own Event-loop for example.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku