[ale]Killing all processes on a port

Chris Fowler cfowler at outpostsentinel.com
Wed Nov 28 14:14:11 EST 2001


Hello,

I want to be able to kill all processes on a tty that I'm not attached to.   I would like to 
simulate a hangup on that port that would cause getty to respawn and all processes
to terminate.

I would assume this is the best method:

1.  Locate tty to kill
2..  Get process id of the main process that uses that as its controlling terminal
3.  Kill it.

Is this the best method?  I'm using C to facilate this ability.

Thanks,
Chris Fowler



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list