Perform deep unix magic in order to identify if we are running in a SOUP_0_4 SOUP_0_5
authorAlex Graveley <alex@ximian.com>
Tue, 28 Aug 2001 17:58:05 +0000 (17:58 +0000)
committerAlex Graveley <orph@src.gnome.org>
Tue, 28 Aug 2001 17:58:05 +0000 (17:58 +0000)
commit7409fe9fc46bd46552dab894d64a7aa421d9ddff
tree1fa4b2e7b0ae926cdb7a17b4d38a1f8338195ed3
parentc46a94e182e66630081eddf5bb2eafa63d257936
Perform deep unix magic in order to identify if we are running in a

2001-08-28  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-socket.c (soup_address_new): Perform deep
unix magic in order to identify if we are running in a
debugger. This is needed because gdb causes segfaults in child
processes that load shlibs due to breakpoints being left over in
the new unwatched process. Now, gethostbyname() loads shared libs
to do name resolution on many unixes, which would cause soup to be
hard to use and otherwise suck when run inside a debugger. So now
everything works perfectly both inside and outside of gdb.
(soup_address_new_cb): Resolve the hostname syncronously if we are
inside a debugger.
ChangeLog
libsoup/soup-socket.c