- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SIGCHLD not trapped
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 08:49 PM
02-19-2007 08:49 PM
SIGCHLD not trapped
#!/bin/ksh
trap 'echo RECEIVED SIGNAL 1' 1
trap 'echo RECEIVED SIGNAL 2' 2
trap 'echo RECEIVED SIGNAL 3' 3
trap 'echo RECEIVED SIGNAL 4' 4
trap 'echo RECEIVED SIGNAL 5' 5
trap 'echo RECEIVED SIGNAL 6' 6
trap 'echo RECEIVED SIGNAL 7' 7
trap 'echo RECEIVED SIGNAL 8' 8
trap 'echo RECEIVED SIGNAL 9' 9
trap 'echo RECEIVED SIGNAL 10' 10
trap 'echo RECEIVED SIGNAL 11' 11
trap 'echo RECEIVED SIGNAL 12' 12
trap 'echo RECEIVED SIGNAL 13' 13
trap 'echo RECEIVED SIGNAL 14' 14
trap 'echo RECEIVED SIGNAL 15' 15
trap 'echo RECEIVED SIGNAL 16' 16
trap 'echo RECEIVED SIGNAL 17' 17
trap 'echo RECEIVED SIGNAL 18' 18
trap 'echo RECEIVED SIGNAL 19' 19
trap 'echo RECEIVED SIGNAL 20' 20
trap 'echo RECEIVED SIGNAL 21' 21
trap 'echo RECEIVED SIGNAL 22' 22
trap 'echo RECEIVED SIGNAL 23' 23
trap 'echo RECEIVED SIGNAL 24' 24
trap 'echo RECEIVED SIGNAL 25' 25
trap 'echo RECEIVED SIGNAL 26' 26
trap 'echo RECEIVED SIGNAL 27' 27
trap 'echo RECEIVED SIGNAL 28' 28
trap 'echo RECEIVED SIGNAL 29' 29
trap 'echo RECEIVED SIGNAL 30' 30
while [ true ]
do
echo $$ - sleep 10
sleep 10
done
I run it and then I send a SIGCHLD to PID process:
kill -18
but the process receives the signal number 26:
RECEIVED SIGNAL 26
whereas if I send another signal, e.g. 1 ,it receives signals 1 and 26
RECEIVED SIGNAL 1
RECEIVED SIGNAL 26
How can I explain this behaviour?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 08:56 PM
02-19-2007 08:56 PM
Re: SIGCHLD not trapped
What are you trying to do in your loop? Why aren't you doing a wait instead?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 08:58 PM
02-19-2007 08:58 PM
Re: SIGCHLD not trapped
and welcome to the forums !
When you send a 18 this results in a 26, which is SIGTTIN - Stop tty input for background process, which is correct.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 09:13 PM
02-19-2007 09:13 PM
Re: SIGCHLD not trapped
kill -l
I see that signal 26 is SIGCONT ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 11:07 AM
02-20-2007 11:07 AM
Re: SIGCHLD not trapped
You are correct. (I didn't have my shell when I replied, to check Peter's answer.)
SIGCONT is being delivered by the kernel.
If you want to prove this, try running tusc to see if it is getting a signal.
Testing this on 11.23 and 11.11, I see no indications it ever got signal 18. Hmm, it seems to wait until the sleep timeout.
Looking at tusc, it seems the shell is only getting signal 26. Signal 18 may be blocked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 10:50 PM
02-20-2007 10:50 PM