home *** CD-ROM | disk | FTP | other *** search
-
-
-
- KILL(3) MINTLIB LIBRARY FUNCTIONS KILL(3)
-
-
- N✓NA✓AM✓ME✓E
- kill - send a signal to a process or a group of processes
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- int kill(int pid, int sig);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- kill sends a signal to a process or a group of processes.
- The process of group of processes to which the signal is
- to be sent is specified by pid. The signal that is to be
- sent is specified by sig and is either on from the list
- given in signal, or 0. If sig is 0 (the null signal),
- error checking is performed but no signal is actually
- sent. This can be used to check the validity of pid.
-
- The real user ID of the sending process must match the
- real user ID of the receiving process, unless the effec-
- tive user ID of the sending process is super-user.
-
- If pid is greater than zero, sig will be sent to the pro-
- cess whose process ID is equal to pid.
-
- If pid is 0, sig will be sent to all processes whose pro-
- cess group ID is equal to the process group ID of the
- sender.
-
- If pid is negative, sig will be sent to all processes
- whose process group ID is equal to the absolute value of
- pid.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- 0 on success -1 on failure; errno is set to indicate the
- error
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- g✓ge✓et✓tp✓pi✓id✓d(✓(3✓3)✓),✓, g✓ge✓et✓tp✓pg✓gr✓rp✓p(✓(3✓3)✓),✓, s✓se✓et✓tp✓pr✓rg✓gp✓p(✓(3✓3)✓),✓, s✓si✓ig✓gn✓na✓al✓l(✓(3✓3)✓),✓, P✓Pk✓ki✓il✓ll✓l(✓(2✓2)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- Under UN*X, the real or effective user ID of the sending
- process must match the real or effective user ID of the
- receiving process, or the effective user ID of the sending
- process must be super-user.
-
- Under UN*X, the processes with a process ID of 0 and a
- process ID of 1 are treated specially.
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-