Questions about defunct processes
by Linux.tar.gz from LinuxQuestions.org on (#6K41C)
Hi,
I run a 500+ lines shell script with dash, trying to stay POSIX.
There is a Code:set -e at the beginning of this program.
It contains mostly sed, wc, grep stuff.
The results of this script are good and expected.
But today, randomly running Code:ps aux, I noticed that I have plenty of short-living sed, wc, grep etc. defunct processes coming from the script.
1- it doesn't seem that the Code:set -e makes the script to fail, it keeps running 'til the end without error. And nothing in the system logs. Why ?
2- is there a way to debug that ?
I run a 500+ lines shell script with dash, trying to stay POSIX.
There is a Code:set -e at the beginning of this program.
It contains mostly sed, wc, grep stuff.
The results of this script are good and expected.
But today, randomly running Code:ps aux, I noticed that I have plenty of short-living sed, wc, grep etc. defunct processes coming from the script.
1- it doesn't seem that the Code:set -e makes the script to fail, it keeps running 'til the end without error. And nothing in the system logs. Why ?
2- is there a way to debug that ?