Fix up line numbers after commit 109
[ccan] / ccan / antithread / antithread.c
index 273b56905577487e432545571a842442271c4a25..7382c59e3c402e04f3c419fe04bc1cdacaa3d8bb 100644 (file)
@@ -9,9 +9,10 @@
 #include <errno.h>
 #include <err.h>
 #include "antithread.h"
-#include "noerr/noerr.h"
-#include "talloc/talloc.h"
-#include "alloc/alloc.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
  * case is where another process allocates for you, but at worst we
@@ -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);
        }