SYNOPSIS
#include <sys/types.h>
#include <signal.h>
int sigqueue(pid_t pid, int sig, const union sigval value);
DESCRIPTION
The
The conditions under which a process has permission to queue a signal
to another process with
The
PARAMETERS
- pid
-
Is a process ID or process group ID.
- sig
-
Specifies the signal to be sent.
- value
-
Is a user-specified value to be passed along with the signal to the receiving process. The receiving process can find the value by examining the si_value field of the siginfo_t structure.
RETURN VALUES
On success,
- EAGAIN
-
There are not enough resources available to queue the signal. The process has already queued SIGQUEUE_MAX signals that are still pending at the receivers, or a system-wide resource limit has been exceeded.
- EINVAL
-
The value of sig is an invalid or unsupported signal number.
- EPERM
-
The user ID of the sending process is not privileged; its real or effective user ID does not match the real or saved user ID of the receiving process. Or, the process does not have permission to send the signal to any receiving process.
- ESRCH
-
No process or process group can be found that corresponds to the one that pid specifies.
CONFORMANCE
POSIX Realtime Extensions.
MULTITHREAD SAFETY LEVEL
Async-signal-safe.
PORTING ISSUES
The determination of whether the sending process has permission to send
a signal to the receiving process ignores any uid or
gid settings that have been specified with calls to
Using
Sending the SIGKILL signal to non-NuTCRACKER Platform processes also
attempts to post a close message to a window owned by the process
specified by pid.
In cases where it is not possible to post this message, or where the
process does not exit in a timely fashion,
Sending any other signal to a non-NuTCRACKER Platform process fails with errno set to EPERM.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
bsd_signal() ,getpgrp() ,getpid() ,kill() ,killpg() ,setpgrp() ,setsid() ,sigaction() ,signal()
PTC MKS Toolkit 10.4 Documentation Build 39.