Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to end a process

Status
Not open for further replies.

xiaxin

Programmer
Aug 6, 2001
3
CN
Hi everyone,

I wonder to know how to end a process created by _spawnl with _P_NOWAIT in calling program.
Thanks a lot.
 
use the kill command.
Find the process by using the ps -ef or top command
put kill processID.

Regards
Maniraja S


 
Thank you. But I want to kill a process in program on NT platform, and which function I can use to kill the process by the processID return from _spawnl(_P_NOWAIT,....);

Regards,
Xin
 
hi,

Now thats something i have long wondered about.. a windoz sdk programmer can talk on this.. How do u get process IDs programmatically or otherwise on windoz..and send signals to them? do the bsd calls work? they should :(

tia,
shail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top