X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fantithread%2Fantithread.c;h=7382c59e3c402e04f3c419fe04bc1cdacaa3d8bb;hp=273b56905577487e432545571a842442271c4a25;hb=d92d6ae709aaed8546fbe5e9eaf2bfa46ff07d85;hpb=74e9da4d1c0b968fbac4b8da165e6ad5318329dd diff --git a/ccan/antithread/antithread.c b/ccan/antithread/antithread.c index 273b5690..7382c59e 100644 --- a/ccan/antithread/antithread.c +++ b/ccan/antithread/antithread.c @@ -9,9 +9,10 @@ #include #include #include "antithread.h" -#include "noerr/noerr.h" -#include "talloc/talloc.h" -#include "alloc/alloc.h" +#include +#include +#include +#include /* 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); }