Go to advanced search

by kaehsu
Thu Mar 26, 2020 3:41 am
Forum: Raspbian
Topic: Keep receiving SIGCHLD when I run shell script on Buster
Replies: 2
Views: 133

Re: Keep receiving SIGCHLD when I run shell script on Buster

Yes, it seems when child process is complete & terminated, a SIGCHLD will be sent to the parent process. Refer the following script: #!/usr/bin/env bash function SHOWPID (){ echo -e "Receiving signal SIGCHLD" echo -e "\tThe parent PID is $$; the child PID is $CHILDPID" } trap SHOWPID SIGCHLD declare...
by kaehsu
Wed Mar 25, 2020 3:59 am
Forum: Raspbian
Topic: Keep receiving SIGCHLD when I run shell script on Buster
Replies: 2
Views: 133

Keep receiving SIGCHLD when I run shell script on Buster

Dear all: I find an interesting situation when I run shell script on Buster. I create a shell script "traplist.sh" on Stretch to test trap handling: #!/usr/bin/env bash trap "echo 'SIGHUP(01) received.'" SIGHUP trap "echo 'SIGINT(02, Ctrl-C) received.'; exit 1" SIGINT trap "echo 'SIGQUIT(03) receive...

Go to advanced search