Date: Wed, 7 Oct 2009 13:50:26 -0700 From: "Matthew Fleming" <matthew.fleming@isilon.com> To: <freebsd-stable@freebsd.org> Subject: [SOLVED] Re: libthr and daemon() Message-ID: <06D5F9F6F655AD4C92E28B662F7F853E0321806B@seaxch09.desktop.isilon.com>
next in thread | raw e-mail | index | archive | help
> 2) why would fork resolve to the one in libc (presumably, I'm not sure how > to prove this) instead of the one in libthr? Well, I'm not sure how the application plus libraries linked, but there was no explicit -lthr or -lpthread in the Makefile. So the resulting binary used the fork() in libc. When I added -lthr the app grew by about 15 bytes, and correctly used the fork() weak-referenced to the explicit _fork() in libthr. Weird. Thanks, matthew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?06D5F9F6F655AD4C92E28B662F7F853E0321806B>