in reply to Setting a timer to a system call

You can also search for perl waitpid timeout for a non-thread fork based solution.