HP-UX Reference (11i v2 04/09) - 5 Miscellaneous Topics (vol 9)
s
signal(5) signal(5)
different value from the ones described in this list for circumstances described in this list.
In addition, the following signal-specific information will be available:
Signal Member Value
SIGILL void * si_addr address of faulting instruction
SIGFP
SIGSEGV void * si_addr address of faulting memory reference
SIGBUS
SIGCHLD pid_t si_pid child process ID
int si_status exit value or signal
real user ID of the process that sent
the signal
uid_t si_uid
band event for
POLL_IN,
POLL_OUT,orPOLL_MSG
SIGPOLL long si_band
For some implementations, the value of si_addr may be inaccurate.
The following are declared as functions and may also be defined as macros:
void (*bsd_signal(int sig, void (*func)(int)))(int);
int kill(pid_t pid, int sig);
int killpg(pid_t pgrp, int sig);
int raise(int sig);
int sigaction(int sig, const struct sigaction
*act, struct sigaction *oact);
int sigaddset(sigset_t *set, int signo);
int sigaltstack(const stack_t *ss, stack_t *oss);
int sigdelset(sigset_t *set, int signo);
int sigemptyset(sigset_t *set);
int sigfillset(sigset_t *set);
int sighold(int sig);
int sigignore(int sig);
int siginterrupt(int sig, int flag);
int sigismember(const sigset_t *set, int signo);
int sigmask(int signum);
void (*signal(int sig, void (*func)(int)))(int);
int sigpause(int sig);
int sigpending(sigset_t *set);
int sigprocmask(int how, const sigset_t *set, sigset_t *oset);
int sigqueue(pid_t pid, int sig, const union sigval value);
int sigrelse(int sig);
void *sigset(int sig, void (*disp)(int)))(int);
int sigstack(struct sigstack *ss,
struct sigstack *oss);
int sigsuspend(const sigset_t *sigmask);
int sigtimedwait(const sigset_t *set, siginfo_t * info,
const struct timespec *timeout);
int sigwait(const sigset_t *set, int *sig);
int sigwaitinfo(const sigset_t *set, siginfo_t * info);
APPLICATION USAGE
Threads Considerations
The following summarizes the signal model for threads:
A signal mask which specifies the signals blocked from delivery is associated with each thread.
The signal disposition, catch/ignore/default, is a process attribute and is shared by all threads in the
process.
If the signal action for a signal specifies termination, stop or continue, all threads within the process
are terminated, stopped or continued, respectively. This is the case regardless of whether the signal
was directed at the process or a specific thread within the process.
Section 5−−324 Hewlett-Packard Company − 5 − HP-UX 11i Version 2: September 2004