projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66d3a14
)
Print warning with failing umount
author
Robert Swiecki
<swiecki@google.com>
Wed, 23 Mar 2016 16:23:18 +0000
(17:23 +0100)
committer
Robert Swiecki
<swiecki@google.com>
Wed, 23 Mar 2016 16:23:18 +0000
(17:23 +0100)
mount.c
patch
|
blob
|
history
diff --git
a/mount.c
b/mount.c
index 461aa7d9ee16550c775533fcd029aee0d525569e..29604591244de41848cd23d8f4e762eb7944d7e9 100644
(file)
--- a/
mount.c
+++ b/
mount.c
@@
-194,12
+194,14
@@
bool mountInitNs(struct nsjconf_t * nsjconf)
}
}
- /*
- * Remove the tmpfs from /tmp is we are mounting / as root
- */
- if (0 == strcmp(nsjconf->chroot, "/")) {
- umount2(destdir, MNT_DETACH);
- }
+ /*
+ * Remove the tmpfs from /tmp is we are mounting / as root
+ */
+ if (0 == strcmp(nsjconf->chroot, "/")) {
+ if (umount2(destdir, MNT_DETACH) == -1) {
+ PLOG_W("umount2('%s', MNT_DETACH) failed", destdir);
+ }
+ }
return true;
}