mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
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
499 B
Plaintext
19 lines
499 B
Plaintext
|
|
$FreeBSD$
|
|
|
|
--- bin/pslurp.orig
|
|
+++ bin/pslurp
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/local/bin/python
|
|
# -*- Mode: python -*-
|
|
#
|
|
# Usage: pslurp [OPTIONS] -h hosts.txt -o outdir remote local
|
|
@@ -145,6 +145,5 @@
|
|
sys.exit(3)
|
|
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_pslurp(hosts, ports, users, remote, local, flags)
|