- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unix Signals
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
04-02-2003 08:41 AM
04-02-2003 08:41 AM
What is the maximum number of signals? 2? Where can I find information on this?
Thanks,
Kym
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 09:00 AM
04-02-2003 09:00 AM
Re: Unix Signals
On HP-UX, 44 types of signals. Do a kill -l to see the details.
Hope this helps,
~AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 09:18 AM
04-02-2003 09:18 AM
Re: Unix Signals
Apart from that HP-UX comes with a nice more explicatory manpage
man 5 signal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 01:38 PM
04-02-2003 01:38 PM
Re: Unix Signals
Where can I get the definition of the signal numbers from kill -l?
Thanks again,
Kym
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 01:40 PM
04-02-2003 01:40 PM
Re: Unix Signals
Have a look at /usr/include/sys/signal.h file. All the signals are defined there.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 02:06 PM
04-02-2003 02:06 PM
Re: Unix Signals
Thanks! Is there only 2 user defined signals? (SIGUSR1 and SIGUSR2). I need three for my application. How can I get a third user defined signal?
Thanks,
Kym
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 02:11 PM
04-02-2003 02:11 PM
Re: Unix Signals
Other than those which cannot be caught (9 - SIGKILL, e.g.), the others are available for your use. Any signal handler (trap) you use will replace the default handler.
For example, it is very common to use SIGINT (2), to trap Ctrl-C keypresses or it is very common to use SIGHUP (1) to reread configuration files even though the default behavior is to exit the program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 02:13 PM
04-02-2003 02:13 PM
Re: Unix Signals
I am having hardtime understanding what your requirement is. What exactly are you trying to do?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 03:04 PM
04-02-2003 03:04 PM
Re: Unix Signals
I use psignal() to signal to the calling process.
In my test application that uses the interface to the HPUX device driver, I use SIGUSR1 and SIGUSR2. I need another user defined signal number. Is there a SIGUSR3 like user defined signal number? I looked at the header files for signals both on Solaris and HPUX, but was not able to find a third user defined signal. Is there only two user defined signals in UNIX, i.e. SIGUSR1 and SIGUSR2? Is there a link where I can get more information on this?
Thanks again,
Kym
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 03:10 PM
04-02-2003 03:10 PM
Re: Unix Signals
Aside from that which has already been provided, the man pages for 'signal(5)' offer some additional information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 03:17 PM
04-02-2003 03:17 PM
Re: Unix Signals
As far as my knowledge goes, you cannot have another user defined signal other than what you already have in signal.h.
However, unless you are trapping all the signals in your code, you could use any of the unused signals to achieve what you want.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 03:17 PM
04-02-2003 03:17 PM
Re: Unix Signals
As far as my knowledge goes, you cannot have another user defined signal other than what you already have in signal.h.
However, unless you are trapping all the signals in your code, you could use any of the unused signals to achieve what you want.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 03:18 PM
04-02-2003 03:18 PM
Re: Unix Signals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 03:19 PM
04-02-2003 03:19 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 03:44 PM
04-02-2003 03:44 PM
Re: Unix Signals
Thanks! I like your suggestion for an alternative. I inherited the current signal mechanism :(.
I tried creating a third signal number other than the defines in signal.h, and it didn't work. It seems like there is only 2 user defined signals.
Thanks,
Kym
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 02:05 AM
04-03-2003 02:05 AM
Re: Unix Signals
Check Clays suggestion very carefully, as this is extremally good advice. (After a while you might end up with need for another signal, and then another... Implementing open interface is very, very useful, especially for task, like driver).
However, if preparing a driver and DEFFINETLY NEEDING more signals I would consider reusage of XWindows signals for exaple, as theses are unlikely to be used. SIGWINCH is a good one, unless your driver is using an XWindow for some reason.
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 02:09 AM
04-03-2003 02:09 AM
Re: Unix Signals
Considering the direction of the signal thransmission it is the client who shouldn't use XWindows, not the driver, of course.
Sorry for the confusion.
Adam