- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- about sigaction .
Operating System - HP-UX
1821808
Members
3204
Online
109638
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
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
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
03-01-2001 07:02 PM
03-01-2001 07:02 PM
about sigaction .
I have a program using sigaction. I set sa_handler = func and sa_sigaction = func1. I didn't set sa_flags. but when the program caught the signal, it invokes func1 not func.
but in sigaction man ,they said when I clear SA_SIGINFO, the sa_handler member must be used to describe the signal catching function.
I don't know why my program's action is not like what described in the sigaction man .
but in sigaction man ,they said when I clear SA_SIGINFO, the sa_handler member must be used to describe the signal catching function.
I don't know why my program's action is not like what described in the sigaction man .
- Tags:
- sigaction
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2001 04:17 AM
03-02-2001 04:17 AM
Re: about sigaction .
Hi!
You never should set both "sa_handler" and "sa_sigaction", because in "struct sigaction" the entry of both are combined using "union".
I've tried a little bit with two signals, where I set both. For one signal it uses the function defined with "sa_handler" and for the other the function defined with "sa_sigaction". Strange behaviour due to the "union" definition, I think.
Hope this helps, Thomas
You never should set both "sa_handler" and "sa_sigaction", because in "struct sigaction" the entry of both are combined using "union".
I've tried a little bit with two signals, where I set both. For one signal it uses the function defined with "sa_handler" and for the other the function defined with "sa_sigaction". Strange behaviour due to the "union" definition, I think.
Hope this helps, Thomas
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