a4694ad913
- 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.
19 lines
495 B
Text
19 lines
495 B
Text
|
|
$FreeBSD$
|
|
|
|
--- bin/pssh.orig
|
|
+++ bin/pssh
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/local/bin/python
|
|
# -*- Mode: python -*-
|
|
#
|
|
# Usage: pssh [OPTIONS] -h hosts.txt prog [arg0] [arg1] ..
|
|
@@ -141,7 +141,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_pssh(hosts, ports, users, cmdline, flags)
|
|
|