473,757 Members | 8,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to kill all inherrit process by codeing in C

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
3 6387
pattanawadee <sp******@unico rn.eng.psu.ac.t h> 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.progr ammer?

--
/-- Joona Palaste (pa*****@cc.hel sinki.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

"pattanawad ee" <sp******@unico rn.eng.psu.ac.t h> 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
"pattanawad ee" <sp******@unico rn.eng.psu.ac.t h> wrote in message
news:12******** *************** ***@posting.goo gle.com...
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
7051
by: Bob Swerdlow | last post by:
My application starts up a number of processes for various purposes using: self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py") and then shuts them down when appropriate with os.kill(self.popen.pid, signal.SIGTERM) Everything works fine on MacOSX. However, I'm doing a port to Solaris (so I can run it on my web site) and find that the child processes are not stopping! Solaris is creating TWO new processes: one for the SHELL...
10
9781
by: Fred | last post by:
There is a setting in INIT.ORA that has the unintended side-effect of making sure the ALTER SYSTEM KILL SESSION command has immediate affect. Without this setting, I've seen some instances where the session reports as being KILLED in V$SESSION but is not physically removed until the instance is bounced. Does anyone remember this value offhand?
10
6181
by: Jako Menkveld | last post by:
I'm building a relatively simple client-server app. One of the functions of the client is to notify the server when it terminates, this all works fine. The problem comes in when the server is stopped before the client, in which case the client "hangs", waiting to talk to the server. This is how it works: Server: Starts listening on a tcp port, say 3000 (by registering a TcpServerChannel and invoking RegisterWellKnownServiceType). When...
6
25873
by: Matthew Wieder | last post by:
What permissions must a user have to be able to succesffuly execute a Process.Kill? I can run it with Admin privleges but not with regular user priveleges - I get an "Access is Denied." The client should be able to run our software was a regular user, so what additional permission must I grant that user for this to work? thanks!
0
2190
by: WATYF | last post by:
This is my problem... I have some code that starts a Process and returns it to a variable... (prcBat) At any time while that process is running... I want to be able to Kill it by pressing a command button in the application. So the code goes something like this: psiBat = New ProcessStartInfo(arrRun.Item(0)(1)) psiBat.WindowStyle = ProcessWindowStyle.Hidden
5
4598
by: Dino Buljubasic | last post by:
My application can allow a user to open a file for viewing by fetching file data from database, creating the file in a temp directory and starting appropriate process (i.e. Adobe or any other depending of file type) to open the file. when I close my application, it is suppose to clean all files it created in temp directory. I do this by : for each file in temp
3
6499
by: elrondrules | last post by:
Hi Am new to python and need your help!! this is my code snip. within my python script I have the following commands.. <snip> import os
4
20781
by: Richard Rossel | last post by:
Hi Fellows, I have a problem with process termination. I have a python code that apache runs through a django interface. The code is very simple, first, it creates a process with the subprocess.Popen call, and afterwards, (using a web request) the python code uses the PID of the previously created process(stored in a db) and kills it with an os.kill call using the SIGKILL signal. The creation of the process is ok, apache calls the...
2
2510
by: =?Utf-8?B?WVhR?= | last post by:
Hello, In the parent process(A), run update function, and start the update process(B), in B process, kill A, then download and update files, then restart A. I want to know can the B process kill A process? Thank you
0
9489
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9906
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9737
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5172
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.