man.bsd.lv manual page server

Manual Page Search Parameters

LWP_KILL(2) System Calls Manual LWP_KILL(2)

lwp_killsend signal to a lwp

library “libc”

#include <sys/types.h>
#include <sys/lwp.h>
#include <signal.h>

int
lwp_kill(pid_t pid, lwpid_t tid, int sig);

The () function sends the signal sig to the lwp specified by pid and tid. If pid is -1, the signal will be sent to the current process. Permission checking and signal behavior is exactly like in kill(2).

Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

Lwp_kill() will fail and no signal will be sent if:

[]
sig is not a valid signal number.
[]
no lwp corresponding to pid and tid can be found.
[]
the sending process is not the super-user and its effective user id does not match the effective user-id of the receiving process.

kill(2), lwp_create(2), raise(3)

The lwp_kill() function first appeared in DragonFly 1.9.

March 12, 2007 DragonFly-5.6.1