]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
audiod: Don't unregister tasks, just set the error value.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index ab1a1df6ffaad6da32cafd2d363211593172159c..03a8d4b97a6c02a0544ff68dba4400dc93dfeb92 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -763,8 +763,8 @@ static void signal_post_select(struct sched *s, struct task *t)
 {
        struct signal_task *st = container_of(t, struct signal_task, task);
        if (getppid() == 1) {
-               t->error = -E_AFS_PARENT_DIED;
-               return;
+               PARA_EMERG_LOG("para_server died\n");
+               goto shutdown;
        }
        if (!FD_ISSET(st->fd, &s->rfds))
                return;
@@ -777,6 +777,9 @@ static void signal_post_select(struct sched *s, struct task *t)
                init_admissible_files(current_mop);
                return;
        }
+       PARA_EMERG_LOG("terminating on signal %d\n", st->signum);
+shutdown:
+       sched_shutdown();
        t->error = -E_AFS_SIGNAL;
 }