Switch to single fork() + alarm() instead of double-forking.