httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@hyperreal.com>
Subject mod_dld_elf.c/http_config.* (fwd)
Date Sun, 03 Mar 1996 07:41:30 GMT

more...

---------- Forwarded message ----------
Date: Sun, 18 Feb 1996 23:13:07 -1000 (HST)
From: David W. Hankins <dhankins@hcf.aloha.net>
To: brian@hyperreal.com
Cc: rst@ai.mit.edu, andrew.wilson@cs.cf.ac.uk
Subject: mod_dld_elf.c/http_config.*

-----BEGIN PGP SIGNED MESSAGE-----

So I got bored earlier than I had anticipated.

What can I say?  I'm between jobs...

I did three things:

1) Modified core sources to include a remove_module function.  The diffs are
   in http://www.aloha.net/~hankins/.  The affected sources are the
   http_config.c and http_config.h files.  mod_dld_elf.c and Configuration.dl
   are provided as well.  Please look over my mods to http_config; I grepped
   as much source as I could to figure if there was anything more necessary
   when removing modules...

2) Modified mod_dld_elf.c to take advantage of this (uncommented some lines
   and used a *hack* which detects reconfigures...a trifle messy but I didn't
   see a better way...suggestions?).

3) Successfully tested removing every single module except mod_dld_elf and
   successfully started httpd dynamically linking all modules.
3b) Successfully removed modules from the configuration list (and their
    configuration commands), sent a sigHUP and noted the lack of that
    module's function.  Their function returned when the configuration files
    were changed back.

I must say I'm really impressed.  My httpd image, with debug symbols stripped,
is only 60k.  It grows to 80k if you link in all the standard modules.

That's the way it should be done, gentlemen.

- -- 
David Hankins,             "If you don't do it right the first time,
Mercenary Spider			you'll just have to do it again."
The Huddled Masses (Inc)				-- J.T. Hankins

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMSg/F3T+oUa7FD7JAQEVxgQApJgfsk8GeMPgdD5rpiyBRCcgoczSwFqy
G3eXPyDon5AlV8kmsTPYykpeLnitME3efRr5hnRz5wGfi2wFq3t7X/qDcQeMpd0/
Vl2QE+rOYquw2HWwBEEeYF2OdKVJfq69eT/Ri2Gnf0SVQSkglGXcN9r+E6Jbt1kc
oWmQtuf+ohQ=
=YzmG
-----END PGP SIGNATURE-----


Mime
View raw message