fix order of job printing with sigchld