Currently some functions are used in subshell to assign string to a variable. For example: _mnt=$(to_mount "$1") In this case if we call perror_exit in the subshell, subshell will exit 1, but the parent process (mkdumprd) won't exit. So we should handle the exit code of a subshell if the subshell calls perror_exit over a failure. Signed-off-by: WANG Chao <chaowang@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
Description
Languages
Shell
92.1%
Roff
6.7%
Makefile
1.2%