update server: Move update_running from server/ to update/

update.h is a more logical home for update_running than server.h.
Move the definition and the assignments along, from server/update.c to
lib/update/main.c.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-06-20 20:40:06 +02:00
parent dd9e393b38
commit 55be3c7105
11 changed files with 12 additions and 16 deletions

View file

@ -50,12 +50,6 @@
#include "prototypes.h"
#include "server.h"
/*
* Update is running.
* Can be used to suppress messages, or direct them to bulletins.
*/
int update_running;
static time_t update_schedule_anchor;
static int update_wanted;
@ -205,9 +199,7 @@ update_run(void)
return;
}
}
update_running = 1;
update_main();
update_running = 0;
empth_rwlock_unlock(update_lock);
}