$NetBSD: patch-ab,v 1.1 2004/12/01 11:47:45 markd Exp $

--- arts_helper.c.orig	2004-11-29 15:01:44.000000000 +1300
+++ arts_helper.c	2004-11-29 15:02:12.000000000 +1300
@@ -15,6 +15,7 @@
 #include <errno.h>
 #include <signal.h>
 #include <sys/select.h>
+#include <sys/time.h>
 
 #include <artsc.h>
 
@@ -243,7 +244,7 @@
 {
 	going = 0;
 	arts_close_stream(handle);
-	arts_free();
+	/*	arts_free(); */
 }
 
 static int read_all(int fd, void *buf, size_t count)
@@ -439,5 +440,5 @@
 	ret = main_loop(fd);
 	close(fd);
 /* 	fprintf(stderr, "helper exits\n"); */
-	return ret < 0;
+	exit(ret < 0);
 }
