On Tue, Aug 28, 2001 at 05:13:30PM -0400, Glenn F. Maynard wrote:
> The majority of people who debug in *nix use GDB (or something layered
> on gdb, ie DDD or Emacs.)  Manually setting that every time is inconvenient,
> and having to change .lftprc isn't much better.

Ok. But my fix is shorter :)  The only drawback is a core file created by
the child.

> On Tue, Aug 28, 2001 at 01:25:44PM +0400, Alexander V. Lukyanov wrote:
> > I did another change, less linux-specific. Funny that forked child does
> > not fault after one lookup done without fork.
> 
> The real bug is related to dynamic linking--loading some libraries after
> fork crashes.  Lookups load NSS libraries, and looking up with the same
> NSS type before forking makes the library already loaded.  However, there
> are any number of NSS types (/etc/hosts, dns, YP), and it only fixes it
> fork the type of lookup used (and there's no way to load them all--which
> probably shouldn't be done anyway.)

This explains why the second time forked child works fine.

-- 
   Alexander.

Reply via email to