X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fantithread%2Fantithread.c;h=7382c59e3c402e04f3c419fe04bc1cdacaa3d8bb;hp=9297cdac1d7f7b992e92e6284516df35778ff938;hb=be74c29bc91273ce585139b2b1f7305512ae941b;hpb=a8b248ea9de55316cac4423a99a727ca7b54e0fc diff --git a/ccan/antithread/antithread.c b/ccan/antithread/antithread.c index 9297cdac..7382c59e 100644 --- a/ccan/antithread/antithread.c +++ b/ccan/antithread/antithread.c @@ -11,6 +11,7 @@ #include "antithread.h" #include #include +#include #include /* 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); }