On Fri, Jul 18, 2003 at 11:22:07PM +0100, Brian Candler wrote:
> However it would be pretty easy to fix: you'd just need to open a pipe, pass
> the pipe to the bannerprog, then in the parent read from the pipe and write
> it back to fastcgi. I might do it if I get a spare few minutes.

OK, I found a few minutes :-) It was pretty straightforward. Here's the
patch, please test it and tell me know if it works for you. I've given it a
quick test and it seems OK.

You still get a fork/exec for every page viewed which contains [#B#],
although hopefully the bannerprog itself ought to be pretty lightweight.

Perhaps a more efficient mechanism would be to dynamically link the banner
prog using 'dlopen', but I don't know how portable that is across
architectures.

Cheers,

Brian.

Attachment: sqwebmail-fcgi-bannerprog.gz
Description: application/gunzip

Reply via email to