freebsd-ports/security/pssh/files/patch-bin_pnuke
Brooks Davis a4694ad913 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.
2007-07-06 20:30:24 +00:00

19 lines
485 B
Text

$FreeBSD$
--- 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)