- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Signal Handling
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
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
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
тАО06-02-2005 01:42 AM
тАО06-02-2005 01:42 AM
Is that, any program should handle such signals.
Like for example my program suppose to be kind of job program and needs to be stable. We have handled few signals.
a) Is that we need to handle all signals (ofcourse apart from not trappable) to keep it running stable?
b) Is that any guidelines that minimum of signals should be handled ?
Any pointer would be of great help.
Solved! Go to Solution.
- Tags:
- signal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 02:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 02:00 AM
тАО06-02-2005 02:00 AM
Re: Signal Handling
For the other signals, you can be little choosy. See 'man 5 signal' for list of signals.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 02:13 AM
тАО06-02-2005 02:13 AM
Re: Signal Handling
I have not seen any scripts for sinal handling,this depends on what signals you handled mostly it would be I think
SIGINT Terminal Interrupt
SIGABRT Process Abort
SIGQUIT Terminal Quit
SIGHUP Hangup
are some of them you could always look into the man pages for 5 signal
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 02:37 AM
тАО06-02-2005 02:37 AM
Re: Signal Handling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 02:45 AM
тАО06-02-2005 02:45 AM
Re: Signal Handling
Stephen Keane,
I am just looking for guidelines or "better programming practice" that such unix signals needs to be handled in general for any process (daemon or any continus running process like jobs)?
As my program needs to be more stable, if there is any chance that any stray program should not send signal that if not handled would exit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 02:51 AM
тАО06-02-2005 02:51 AM
Re: Signal Handling
You might (depending on circumstances) wan't to trap and deal with SIGCHLD for example, or possibly SIGPIPE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 03:01 AM
тАО06-02-2005 03:01 AM
Re: Signal Handling
You should also note that it may be perfectly normal for even a daemon to die on a SIGTERM, for example, but you want to make sure that the daemon dies gracefully after performing any needed cleanup tasks.