[ARVADOS] updated: 8350db2288e8f915bb70328e89c2717d69ba62ad

git at public.curoverse.com git at public.curoverse.com
Thu Aug 28 13:19:00 EDT 2014


Summary of changes:
 services/crunchstat/crunchstat.go | 7 +++++++
 1 file changed, 7 insertions(+)

       via  8350db2288e8f915bb70328e89c2717d69ba62ad (commit)
      from  638c2c2258e7004f9a86277588d50f1243a297c8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 8350db2288e8f915bb70328e89c2717d69ba62ad
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Aug 28 13:18:48 2014 -0400

    Pass stdin to child process. closes #3751

diff --git a/services/crunchstat/crunchstat.go b/services/crunchstat/crunchstat.go
index d61871d..6eae22c 100644
--- a/services/crunchstat/crunchstat.go
+++ b/services/crunchstat/crunchstat.go
@@ -262,6 +262,10 @@ func main() {
 
 		logger.Print("Running ", flag.Args())
 
+		// Child process will read from our stdin pipe (we
+		// close our copy below)
+		cmd.Stdin = os.Stdin
+
 		// Forward SIGINT and SIGTERM to inner process
 		term := make(chan os.Signal, 1)
 		go func(sig <-chan os.Signal) {
@@ -293,6 +297,9 @@ func main() {
 		}
 	}
 
+	// Close standard input in this (parent) process
+	os.Stdin.Close()
+
 	// Read the cid file
 	var container_id string
 	if cgroup_cidfile != "" {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list