*
*/
+#include <signal.h>
#include <sys/types.h>
#include <dirent.h>
uint32_t afs_socket_cookie;
static int afs_socket;
-pid_t afs_pid;
+static pid_t afs_pid;
static void init_afs(void)
{
mmd->selector_change = mmd->selector_num; /* do not change selector.. */
change_selector(); /* .. just reload */
init_user_list(user_list_file); /* reload user list */
+ if (afs_pid)
+ kill(afs_pid, SIGHUP);
}
static void status_refresh(void)
break;
case SIGCHLD:
for (;;) {
- pid = para_reap_child();
- if (pid <= 0)
+ ret = para_reap_child(&pid);
+ if (ret <= 0)
break;
if (pid != afs_pid)
continue;