Commit 8dcaa5de authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3244f3a6
...@@ -455,7 +455,7 @@ def __stop(wcsrv, ctx, _onstuck): ...@@ -455,7 +455,7 @@ def __stop(wcsrv, ctx, _onstuck):
log.warn("-> kill -TERM wcfs.go ...") log.warn("-> kill -TERM wcfs.go ...")
os.kill(wcsrv._proc.pid, SIGTERM) os.kill(wcsrv._proc.pid, SIGTERM)
if wcsrv._fuseabort is not None: if wcsrv._fuseabort is not None:
log.warn("-> aborting FUSE connection ...") log.warn("-> abort FUSE connection ...")
wcsrv._fuseabort.write(b"1\n") wcsrv._fuseabort.write(b"1\n")
wcsrv._fuseabort.flush() wcsrv._fuseabort.flush()
defer(_) defer(_)
...@@ -526,12 +526,11 @@ def _fuse_unmount(mntpt): ...@@ -526,12 +526,11 @@ def _fuse_unmount(mntpt):
def _(): def _():
log.warn("# lsof %s" % mntpt) log.warn("# lsof %s" % mntpt)
# -w to avoid lots of # -w to avoid lots of
# lsof: WARNING: can't stat() fuse.wcfs file system /tmp/wcfs/X # lsof: WARNING: can't stat() fuse.wcfs file system /dev/shm/wcfs/X
# Output information may be incomplete. # Output information may be incomplete.
# if there are other uncleaned wcfs mountpoints. # if there are other uncleaned wcfs mountpoints.
# (lsof stats all filesystems on startup) # (lsof stats all filesystems on startup)
# XXX -> better use `fuser -m <mntpt>` (it says it will limit search to files only under mntpt) ? # NOTE lsof +D misbehaves - don't use it
# NOTE lsof +D misbehves - don't use it
ret, out = _sysproccallout(["lsof", "-w", mntpt]) ret, out = _sysproccallout(["lsof", "-w", mntpt])
log.warn(out) log.warn(out)
if ret: if ret:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment