DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 22nd October 2008
techmarks techmarks is offline
New User
 
Join Date: Jun 2008
Posts: 5
Thanked 0 Times in 0 Posts
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick