fix undefined value
[skip ci]
[linux] let child process exit when parent hung up
[skip ci]