How to kill all inherrit process by codeing in C

P

pattanawadee

Deall All,

Could anybody suggestion me How to kill all inherrit processes
(sibling child,previous and parent process) in the case I know only
child process id and user id, For example I strart to trace pid 124 of
user A (uid = 100) and then I noticed that he doing something wrong
so, I get process id now process id is 156 (supposed) then I want to
kill all inherrit processes of user A (now I know only this process is
156 and uid is 100) i want to kill all sibling-child process, previous
process, parent process, How I can get theses data from process table,
and how to kill them.

Thank you very much in advanced,
Pattanawadee Siwatintuko
 
J

Joona I Palaste

pattanawadee said:
Deall All,
Could anybody suggestion me How to kill all inherrit processes
(sibling child,previous and parent process) in the case I know only
child process id and user id, For example I strart to trace pid 124 of
user A (uid = 100) and then I noticed that he doing something wrong
so, I get process id now process id is 156 (supposed) then I want to
kill all inherrit processes of user A (now I know only this process is
156 and uid is 100) i want to kill all sibling-child process, previous
process, parent process, How I can get theses data from process table,
and how to kill them.

ISO standard C does not know about "kill", "inherit", "process",
"sibling", "child", "process id", "user id" or "process table". Perhaps
you want comp.unix.programmer?

--
/-- Joona Palaste ([email protected]) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"Make money fast! Don't feed it!"
- Anon
 
M

Malcolm

pattanawadee said:
Could anybody suggestion me How to kill all inherrit processes
(sibling child,previous and parent process) in the case I know only
child process id and user id
If this is possible at all on your platform there will be a C function or
set of functions shipped with your compiler that provides the necessary API.
However it is platform-specific so not on-topic here.
 
M

Mike Wahler

pattanawadee said:
Deall All,

Could anybody suggestion me How to kill all inherrit processes

Many ways, take your pick:
(list is not exhaustive)

Shoot them with a gun.
Starve them.
Run over them with a truck.
Set them on fire.
Drown them.
Freeze them.
Asphyxiate them.
Grind them up in a blender.
Make a contract with a 'hit-man'. I recommend Guido from Chicago.
Tell them to steal from a drug dealer.
Blow them up with TNT.
Throw them off a tall building.
Send them unarmed into battle against a platoon of U.S. Marines.
Feed them to a lion.
Throw them into an active volcano.
Cause Evander Holyfield to believe they've insulted him.

Now what was your question about ISO C again?

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,082
Messages
2,570,588
Members
47,209
Latest member
Ingeborg61

Latest Threads

Top