Are you doing the fork here so that the web app can handle requests while the sleep handler is triggered?