[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale]Killing all processes on a port
- Subject: [ale]Killing all processes on a port
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Wed, 28 Nov 2001 14:14:11 -0500
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.