31.03.2016 01:32, Erich Titl пишет: > Am 30.03.2016 um 17:20 schrieb Andrew: >> 30.03.2016 17:17, Erich Titl пишет: > ... >>> There are a few drawbacks with the invocation >>> >>> - umount_delayed must be pushed to the background to terminate >> it may call itself with some parameter (that indicates that it's fork) >> and if parameter is present - do delayed umunt, if not - run itself in >> background with parameter via nohup (to be sure that all is umounted >> even if console is terminated). > Maybe I was not clear enough. The calling process needs to push the > umount command to the background to make sure it can continue its own > process. Else it will wait for the termination of the called process. Command can push itself in background. Something like this:
if [ "$1" == "--nofork" ]; then umount all fs here else nohup $0 --nofork & endif > cheers > > ET > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 > > _______________________________________________ > leaf-devel mailing list > leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel