}
PARA_EMERG_LOG("terminating on signal %d\n", signum);
shutdown:
- sched_shutdown(s);
+ task_notify_all(s, E_AFS_SIGNAL);
t->error = -E_AFS_SIGNAL;
}
struct afs_client *client, *tmp;
int fd, ret;
+ ret = task_get_notification(t);
+ if (ret < 0) {
+ t->error = ret;
+ return;
+ }
ret = execute_server_command(&s->rfds);
if (ret < 0) {
PARA_EMERG_LOG("%s\n", para_strerror(-ret));
- sched_shutdown(s);
+ task_notify_all(s, -ret);
+ t->error = ret;
return;
}
/* Check the list of connected clients. */