ooops... How do I implement a timeout in an external procedure? s I just hacked out a procedure using the usual technique: I use SIGALRM, set an alarm and catch the signal. But, I forgot that signals only work in the main thread so it won't do the job.