fix: close fuse device before calling umount to prevent deadlock after a

SIGTERM if synchronous umount is used (Miklos Szeredi, Szabolcs Szakacsits)
master
szaka 2007-12-15 08:56:37 +00:00
parent 67997a4d88
commit a33787171c
1 changed files with 1 additions and 0 deletions

View File

@ -283,6 +283,7 @@ void fuse_kern_unmount(const char *mountpoint, int fd)
if (res == 1 && (pfd.revents & POLLERR))
return;
}
close(fd);
if (geteuid() == 0) {
fuse_mnt_umount("fuse", mountpoint, 1);