interrupt mechanism reworked, make SIGCHLD interrupt also