X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsysdep.c;h=5d81fe3d248b581420affe4fb8a5ad826f39c084;hb=fb6f6fa4ec4e3277e30d84326d48e6850822d318;hp=101c3647a06b551ef8157acd59323cf0c5c4707f;hpb=a13d1d34c6f9bb9b2ffd448e177200151ce42e79;p=citadel.git diff --git a/webcit/sysdep.c b/webcit/sysdep.c index 101c3647a..5d81fe3d2 100644 --- a/webcit/sysdep.c +++ b/webcit/sysdep.c @@ -1,21 +1,15 @@ /* * WebCit "system dependent" code. * - * Copyright (c) 1996-2011 by the citadel.org team + * Copyright (c) 1996-2012 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License, version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "sysdep.h" @@ -79,10 +73,10 @@ pthread_key_t MyConKey; /* TSD key for MyContext() */ pthread_key_t MyReq; /* TSD key for MyReq() */ int msock; /* master listening socket */ int time_to_die = 0; /* Nonzero if server is shutting down */ -int verbosity = 9; /* Logging level */ extern void *context_loop(ParsedHttpHdrs *Hdr); extern void *housekeeping_loop(void); +extern void do_housekeeping(void); char ctdl_key_dir[PATH_MAX]=SSL_DIR; char file_crpt_file_key[PATH_MAX]=""; @@ -100,6 +94,8 @@ char *static_dirs[]={ /* needs same sort order as the web mapping */ (char*)static_icon_dir /* our icons... */ }; +int ExitPipe[2]; + void InitialiseSemaphores(void) { int i; @@ -108,6 +104,15 @@ void InitialiseSemaphores(void) for (i=0; i