View Single Post
  #1   (View Single Post)  
Old 22nd October 2008
techmarks techmarks is offline
New User
 
Join Date: Jun 2008
Posts: 5
Default sigint form within a c prog

How do I send the kill signal to a program from within another program?

I understand I can do this

Code:
kill (pid, SIGINT);
]

But how do I get the pid for the program I want to kill from within the program I want to issue the signal from?

Thanks for any information.
Reply With Quote