18027: Kill arv-mount directly if arv-mount --unmount cannot run.
authorTom Clegg <tom@curii.com>
Fri, 3 Sep 2021 14:29:05 +0000 (10:29 -0400)
committerTom Clegg <tom@curii.com>
Fri, 3 Sep 2021 14:29:05 +0000 (10:29 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/crunchrun/crunchrun.go

index e15303a3155afe81d72e8ce61e881ce76d5282d7..01141674a6b329fc6ef4f0cb2feb6b60628e96e8 100644 (file)
@@ -1170,6 +1170,7 @@ func (runner *ContainerRunner) CleanupDirs() {
 
                if umnterr != nil {
                        runner.CrunchLog.Printf("Error unmounting: %v", umnterr)
+                       runner.ArvMount.Process.Kill()
                } else {
                        // If arv-mount --unmount gets stuck for any reason, we
                        // don't want to wait for it forever.  Do Wait() in a goroutine