Fix up line numbers after commit 109
[ccan] / ccan / antithread / antithread.c
index 9297cdac1d7f7b992e92e6284516df35778ff938..7382c59e3c402e04f3c419fe04bc1cdacaa3d8bb 100644 (file)
@@ -11,6 +11,7 @@
 #include "antithread.h"
 #include <ccan/noerr/noerr.h>
 #include <ccan/talloc/talloc.h>
+#include <ccan/read_write_all/read_write_all.h>
 #include <ccan/alloc/alloc.h>
 
 /* FIXME: Valgrind support should be possible for some cases.  Tricky
@@ -290,7 +291,7 @@ struct athread *at_spawn(struct at_pool *pool, void *arg, char *cmdline[])
                execvp(argv[0], argv);
 
                err = errno;
-               write(pool->parent_wfd, &err, sizeof(err));
+               write_all(pool->parent_wfd, &err, sizeof(err));
                exit(1);
        }