> 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
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to