Added github url as comment in code.
Check background status on SIGCHLD.