Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 1997 02:12:36 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        gurney_j@resnet.uoregon.edu
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: portal pid not correct...
Message-ID:  <199711040212.TAA14153@usr09.primenet.com>
In-Reply-To: <19971102014238.14394@hydrogen.nike.efn.org> from "John-Mark Gurney" at Nov 2, 97 01:42:38 am

next in thread | previous in thread | raw e-mail | index | archive | help
> I took a look at the code.. and basicly it doesn't become a daemon before
> tring to mount the fs...  and this is understandable else you can't return
> a failed mount...
> 
> now as I see this, there are a couple ways to fix this...
> 	a) just become a daemon and then mount, this isn't very attrative
> 	   as the error doesn't get reported
> 	b) do something were it will fork off the child, child will
> 	   immediately SIGSTOP itself, then parent will mount, and then
> 	   parent will SIGCONT the process for normal execution, or kill
> 	   it off if the mount failed.
> 	c) insert your idea hear
> 
> comments? ideas?

Use vfork for the side effect before child exit/exec.  Man vfork for
details.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711040212.TAA14153>