head	1.2;
access;
symbols
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2009.02.13.20.11.13;	author brooks;	state dead;
branches;
next	1.1;

1.1
date	2007.07.06.20.30.24;	author brooks;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Upgrade to 1.4.3 which fixes all of the bugs I had patched around and more.

Prodded by:	Michael <postmaster at softsearch dot ru> (ages ago),
		portscout (via miwi)
@
text
@
$FreeBSD: ports/security/pssh/files/patch-bin_pnuke,v 1.1 2007/07/06 20:30:24 brooks Exp $

--- bin/pnuke.orig
+++ bin/pnuke
@@@@ -1,4 +1,4 @@@@
-#!/usr/bin/env python
+#!/usr/local/bin/python
 # -*- Mode: python -*-
 #
 # Usage: pnuke [OPTIONS] -h hosts.txt pattern
@@@@ -123,7 +123,6 @@@@
     cmdline = " ".join(args)
     hosts, ports, users = psshutil.read_hosts(flags["hosts"])
     psshutil.patch_users(hosts, ports, users, flags["user"])
-    signal.signal(signal.SIGCHLD, psshutil.reaper)
     os.setpgid(0, 0)
     do_pnuke(hosts, ports, users, pattern, flags)
 
@


1.1
log
@Fix a couple bugs and remove the IGNORE variable:
 - select can be interrupted and return EINTR so we need to loop around it
   while it does so rather than treating it as a fatal error.
 - all process creations are matched with a wait() so having a SIGCHLD
   handler that performs a wait(-1) is pointless and racy.  We tend to
   loose the race over half the time and as a result were reporting
   successful processes as failed.

Add a couple features:
 - Skip commented lines in the host specification.
 - Allow '-' as an alias for stdin in the host file specification.
@
text
@d2 1
a2 1
$FreeBSD$
@

