Browse Source

[core] clean up srv before exiting for lighttpd -[vVh]

From: Glenn Strauss <gstrauss@gluelogic.com>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3138 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/heads/lighttpd-1.4.x
Glenn Strauss 6 years ago
committed by Stefan Bühler
parent
commit
de08a135ea
  1. 1
      NEWS
  2. 6
      src/server.c

1
NEWS

@ -61,6 +61,7 @@ NEWS
* pass buf size to li_tohex()
* use li_[iu]tostrn() instead of li_[iu]tostr()
* [stream] fstat() after open() to obtain file size
* [core] clean up srv before exiting for lighttpd -[vVh]
- 1.4.39 - 2016-01-02
* [core] fix memset_s call (fixes #2698)

6
src/server.c

@ -674,9 +674,9 @@ int main (int argc, char **argv) {
case 'p': print_config = 1; break;
case 't': ++test_config; break;
case 'D': srv->srvconf.dont_daemonize = 1; break;
case 'v': show_version(); return 0;
case 'V': show_features(); return 0;
case 'h': show_help(); return 0;
case 'v': show_version(); server_free(srv); return 0;
case 'V': show_features(); server_free(srv); return 0;
case 'h': show_help(); server_free(srv); return 0;
default:
show_help();
server_free(srv);

Loading…
Cancel
Save