By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,011 Members | 1,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,011 IT Pros & Developers. It's quick & easy.

How to kill all inherrit process by codeing in C

P: n/a
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
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
pattanawadee <sp******@unicorn.eng.psu.ac.th> scribbled the following:
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 (pa*****@cc.helsinki.fi) ---------------------------\
| 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
Nov 13 '05 #2

P: n/a

"pattanawadee" <sp******@unicorn.eng.psu.ac.th> wrote in message

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.
Nov 13 '05 #3

P: n/a
"pattanawadee" <sp******@unicorn.eng.psu.ac.th> wrote in message
news:12**************************@posting.google.c om...
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
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.