wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 533b07a1e498b1f6a045b1bcfa4e9dc48964a284
parent b0a7d50a77b45763cbb935296533573dbe714c14
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Thu, 26 Apr 2007 00:51:44 -0700

terminate existing instances nicely before SIGKILL-ing them

Diffstat:
wmiirc | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/wmiirc b/wmiirc @@ -26,6 +26,7 @@ end LOG.info "birth" # terminate existing instances of this program + system 'wmiir xwrite /event Start wmiirc' # terminate them nicely instances = `ps -C #{File.basename $0} -o pid h`.split.map! {|s| s.to_i} instances.delete $$ # do not kill self!