[ARVADOS] updated: 2c77b59f16d698fa5368c2aa28f5c304c3f7e53b

git at public.curoverse.com git at public.curoverse.com
Mon Jun 2 14:22:04 EDT 2014


Summary of changes:
 sdk/python/arvados/commands/put.py                 |  20 ++--
 sdk/python/test_cmdline.py                         |  81 ----------------
 .../tests/{test_arv-put.py => test_arv_put.py}     | 103 ++++++++++++++++++++-
 services/fuse/bin/arv-mount                        |  10 +-
 4 files changed, 120 insertions(+), 94 deletions(-)
 delete mode 100644 sdk/python/test_cmdline.py
 rename sdk/python/tests/{test_arv-put.py => test_arv_put.py} (78%)

       via  2c77b59f16d698fa5368c2aa28f5c304c3f7e53b (commit)
       via  270a94c35d496daeabc39300611f727ce307f353 (commit)
       via  c950192e08bcfc6e84432359a7128b73b52e8a58 (commit)
       via  8997d50ab1d335120af5965957c4cca9fb2a3b16 (commit)
       via  6029fb64fd6372c577f9f143e6f3dcaded127ac3 (commit)
       via  c88315d6435332f5dababac62ff4d72dadde7c67 (commit)
       via  e1ae50d3e62499eaa0938f27cea3e4ff8ba116a3 (commit)
      from  a285726d2297f71254529ab7d5b02f9246a0c413 (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 2c77b59f16d698fa5368c2aa28f5c304c3f7e53b
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Jun 2 14:22:00 2014 -0400

    2882: arv-mount --exec forwards SIGINT and SIGTERM to the underlying subprocess.

diff --git a/services/fuse/bin/arv-mount b/services/fuse/bin/arv-mount
index 904fbf1..4f1d23f 100755
--- a/services/fuse/bin/arv-mount
+++ b/services/fuse/bin/arv-mount
@@ -5,6 +5,7 @@ import arvados
 import subprocess
 import argparse
 import daemon
+import signal
 
 if __name__ == '__main__':
     # Handle command line parameters
@@ -64,9 +65,14 @@ collections on the server.""")
         # wait until the driver is finished initializing
         operations.initlock.wait()
 
-        rc = 255
         try:
-            rc = subprocess.call(args.exec_args, shell=False)
+            sp = subprocess.Popen(args.exec_args, shell=False)
+            # forward signals to the process.
+            signal.signal(signal.SIGINT, lambda signum, frame: sp.send_signal(signum))
+            signal.signal(signal.SIGTERM, lambda signum, frame: sp.send_signal(signum))
+            signal.signal(signal.SIGQUIT, lambda signum, frame: sp.send_signal(signum))
+            rc = 255
+            rc = sp.wait()
         except OSError as e:
             sys.stderr.write('arv-mount: %s -- exec %s\n' % (str(e), args.exec_args))
             rc = e.errno

commit 270a94c35d496daeabc39300611f727ce307f353
Merge: a285726 c950192
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Jun 2 13:32:23 2014 -0400

    Merge branch 'master' into 2882-job-process-stats refs #2882


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


hooks/post-receive
-- 




More information about the arvados-commits mailing list