In message <4b7bbdfa.7080...@schokola.de>, Nils Goroll writes: >Hi Poul-Henning and all, > >> We need CFLAGS to contain -mt on solaris, otherwise errno does not >> get macro-fied to be per-thread. >> >> That's where the: EBADF comes from, some entirely different >> filedescriptor a long time ago, in the master process... > >Fantastic. Thank you for putting so much effort into this. > >But also: Stupid I didn't think about this. See how I'm compiling varnish >since >I started working with it:
Yeah, we clearly need to improve the autocrap magic a bit to get stuff like this right. I have added a runtime test now, which panics the child process if the errno variable is not working properly. >VCC_CC="exec gcc -fpic -D_REENTRANT -m64 -shared -o %o %s" Right now our VCC_CC default is for the sun-compiler I think ("-Kpic"), That's another piece of autocrap stuff that needs fixed... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc