Signed-off-by: Ralph Boehme <rb@sernet.de>
Changes in 3.1.6
================
* FIX: Spotlight: fix for long running queries
+* UPD: afpd: distribute SIGHUP from parent afpd to children and force
+ reload shares
Changes in 3.1.5
================
if (reload_request) {
reload_request = 0;
- load_volumes(AFPobj, lv_none);
+ load_volumes(AFPobj, lv_force);
}
/* The first SIGINT enables debugging, the next restores the config */
nologin = 0;
reloadconfig = 0;
errno = saveerrno;
+
+ if (server_children) {
+ server_child_kill(server_children, SIGHUP);
+ }
+
continue;
}
};
/* load_volumes() flags */
-typedef enum {lv_none = 0, lv_all = 1} lv_flags_t;
+typedef enum {
+ lv_none = 0,
+ lv_all = 1,
+ lv_force = 2
+} lv_flags_t;
/* volume flags */
#define AFPVOL_OPEN (1<<0)
}
if (Volumes) {
- if (!volfile_changed(obj))
+ if (!(flags & lv_force) && !volfile_changed(obj))
goto EC_CLEANUP;
have_uservol = 0;
for (vol = Volumes; vol; vol = vol->v_next) {