Re: [Aoetools-discuss] My changes to vblade
Brought to you by:
ecashin,
elcapitansam
From: Ed C. <ec...@co...> - 2009-03-27 18:16:31
|
On Fri, Mar 27, 2009 at 10:39:30AM -0700, kelsey hudson wrote: > Ed Cashin wrote > > With "vbladed", I was probably influenced by Dan Bernstein, who says > > that a process should not daemonize itself when an external program > > could do it if and when necessary. It certainly does tend to make the > > Dan Bernstein also says it's OK to do things like put binaries in /var > and not implement parts of well-known specifications you don't like for > whatever reason. I take what that guy says with a grain of salt -- some > of what he says is good sense, but other stuff is *way* off-the-mark. Agreed. > > C code cleaner when the program is written for the general case and > > can be used either way. > > well, sure, but adding some daemonize code in there doesn't make the > source code *that* much dirtier. It really is a simple thing to do, and > is much more convenient than 'eval sh -c "/blah/blah some stuff &"' if > you want to fork something off into the background. adding a -x (or > whatever) to keep it from forking or a -d to tell it to fork isn't that > tough either. If vbladed wasn't already done, this issue would be more interesting, but since the functionality is already present, it's probably only worth discussing if there are some specific significant shortcomings of vbladed. The fact that it uses the shell isn't a shortcoming in any way that matters, as far as I know. -- Ed Cashin <ec...@co...> Find experimental aoe Linux driver patches at http://coraid.typepad.com/aoe_linux_proving_grounds/ |