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.

On Tue, Aug 28, 2001 at 01:25:44PM +0400, Alexander V. Lukyanov wrote:
> > Well, gdb in Debian unstable still has that fork bug, so here's a patch
> > to work around it; use-fork is always off in gdb.
> 
> 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.)

-- 
Glenn Maynard

Reply via email to