- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Reserved SIGNAL for application
Operating System - Linux
1821203
Members
3436
Online
109631
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО11-16-2004 05:38 PM
тАО11-16-2004 05:38 PM
Reserved SIGNAL for application
Hi,
There are 2 reserved signals for application namely SIGUSR1 and SIGUSR2.
In my application i already have used these 2 reserved signals. now, i have an requiremnt to send one more notication to application using signal. How can i acheive this.
I have used SIGUSR1 to pause, SIGUSR2 to resume. I need to sent one more signal to check table values in database.
How can i send this custom signal as both SIGUSR1 and SIGUSR2 are already occupied.
Many Thanks
There are 2 reserved signals for application namely SIGUSR1 and SIGUSR2.
In my application i already have used these 2 reserved signals. now, i have an requiremnt to send one more notication to application using signal. How can i acheive this.
I have used SIGUSR1 to pause, SIGUSR2 to resume. I need to sent one more signal to check table values in database.
How can i send this custom signal as both SIGUSR1 and SIGUSR2 are already occupied.
Many Thanks
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 05:02 AM
тАО11-17-2004 05:02 AM
Re: Reserved SIGNAL for application
Perhaps you could use SIGTSTP and SIGCONT
for your existing pause/resume feature.
I believe SIGTSTP is the signal sent by
the shell when when you type Control-Z, and
SIGCONT is the signal sent when you do an
"fg" or "bg" to resume. If your app doesn't
interact with the shell or otherwise need
SIGTSTP or SIGCONT then I think it's safe to
re-use them.
for your existing pause/resume feature.
I believe SIGTSTP is the signal sent by
the shell when when you type Control-Z, and
SIGCONT is the signal sent when you do an
"fg" or "bg" to resume. If your app doesn't
interact with the shell or otherwise need
SIGTSTP or SIGCONT then I think it's safe to
re-use them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 10:43 AM
тАО11-17-2004 10:43 AM
Re: Reserved SIGNAL for application
The other thing is that you can trap *ANY* signal (except for SIGKILL) and do whatever you want on it.
For instance, if it's a daemon, you could use 'SIGHUP' (which in daemons is usually used to re-read configuration files etc.), or 'SIGINT' (same as hitting ctrl-c, interrupt) or any other of which doesn't do something you want it too.
For instance, if it's a daemon, you could use 'SIGHUP' (which in daemons is usually used to re-read configuration files etc.), or 'SIGINT' (same as hitting ctrl-c, interrupt) or any other of which doesn't do something you want it too.
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP