HP-UX Reference (11i v2 07/12) - 2 System Calls (vol 5)
k
kill(2) kill(2)
[EINVAL] sig is
SIGKILL or SIGSTOP and pid is 1 (process 1).
[EPERM] The user ID of the sending process is not a user who has appropriate privileges and its
real or effective user ID does not match the real or saved user ID of the receiving pro-
cess.
[EPERM] The sending and receiving processes are not in the same session and the real or
effective user ID does not match the real or saved user ID of the receiving process.
[ESRCH] No process or process group can be found corresponding to that specified by pid.
If
raise() fails, no signal is sent. errno
is set to one of the following values.
[EINVAL] sig is neither a valid signal number nor zero.
APPLICATION USAGE
Threads Considerations
kill() can be used to post signals to another process but cannot be used to post signals to a specific
thread in another process. For information on posting signals to specific threads within the same process,
see pthread_kill(3T).
LWP (Lightweight Processes) Considerations
Signals cannot be posted to specific LWPs in another process.
AUTHOR
kill() was developed by HP, AT&T, and the University of California, Berkeley.
SEE ALSO
kill(1), getpid(2), setsid(2), signal(2), sigqueue(2), pthread_kill(3T).
STANDARDS CONFORMANCE
kill(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
raise(): AES, SVID3, XPG4, ANSI C
158 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: December 2007 Update