Messages in this thread | | | Date | Mon, 3 Jan 2005 10:35:45 +0100 | From | Frank van Maarseveen <> | Subject | Re: the umount() saga for regular linux desktop users |
| |
On Sun, Jan 02, 2005 at 10:05:36PM +0100, Adrian Bunk wrote: > On Sun, Jan 02, 2005 at 09:56:50PM +0100, Pavel Machek wrote: > > > > Okay, so the right solution is probably something more like > > > > while umount /mnt; do > > fuser -km -TERM /mnt > > sleep 1 > > fuser -km /mnt > > done > > A command line user only needs to know about fuser, and in the unlikely > case if the race condition Oliver thought of occurs he'll note since > umount will give an error message.
There's a much more interesting race: another process succesfully umounting the thing while this one's asleep.
-- Frank - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |