#include "citadel.h"
#include "server.h"
#include "control.h"
-#include "serv_extensions.h"
#include "sysdep_decls.h"
#include "support.h"
#include "config.h"
*/
void lock_control(void)
{
-#ifndef BSD_GETPWUID
+#ifdef HAVE_FLOCK
/*
* TODO: solaris manpages describe this function, but the headers
* don't show it!
*/
+
if (flock(fileno(control_fp), (LOCK_EX | LOCK_NB))) {
lprintf(CTDL_EMERG, "citserver: unable to lock %s.\n", file_citadel_control);
lprintf(CTDL_EMERG, "Is another citserver already running?\n");
CC->curr_user);
aide_message(buf,"Citadel Configuration Manager Message");
- if (strlen(config.c_logpages) > 0)
+ if (!IsEmptyStr(config.c_logpages))
create_room(config.c_logpages, 3, "", 0, 1, 1, VIEW_BBS);
/* If full text indexing has been disabled, invalidate the