chiark / gitweb /
speaker process terminating is fatal
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 30 Sep 2007 16:41:55 +0000 (17:41 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 30 Sep 2007 16:41:55 +0000 (17:41 +0100)
server/play.c

index 3b3b928b57534849becebfb68953d4416ad35273..be25dda29ebb220607fcedcbeda91506dc00a516 100644 (file)
@@ -87,10 +87,8 @@ static int speaker_terminated(ev_source attribute((unused)) *ev,
                              int attribute((unused)) status,
                              const struct rusage attribute((unused)) *rusage,
                              void attribute((unused)) *u) {
-  if(status)
-    error(0, "speaker subprocess terminated with status %s",
-         wstat(status));
-  return 0;
+  fatal(0, "speaker subprocess terminated with status %s",
+       wstat(status));
 }
 
 /* called when speaker process has something to say */