[JDEV] main.c

Ted Rolle ted at acacia.datacomm.com
Sun Aug 20 20:14:29 CDT 2000


I've been rooting around in main.c and config.c and have some suggestions:

The signal processing is promiscuous -- signals other than SIGKILL kill
it.  Try SIGUSR1, for example.  We may wish to use these signals in the
future for something else.

Some of the file name processing in config.h should be done in main.h.  My
reasoning for this is that main allows the changing of the configuration
file via the -c parameter.  So, main.c should "own" the configuration file
name; parse it, determine its existence, and pass it to config as a
"validated" file name.  This moves validation code from config.c to main.c
-- code which should be executed only once, but with the current design
executes every time js_config_load is called.  Once jserver starts, the
file name cannot be changed, therefore it should be parsed at the
beginning -- and only once.

Ted





More information about the JDev mailing list