]> git.ozlabs.org Git - ccan/commit
tal: save and restore errno across all notifiers.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Dec 2016 04:28:42 +0000 (14:58 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Dec 2016 23:12:44 +0000 (09:42 +1030)
commitba89419ac9074d930eec7ba72c378831c56ed060
treec323e1c02362c52229243e5233b9d4253eae4a82
parent0fe2d094b262f6e8bed798930e8c4716d33d5dc7
tal: save and restore errno across all notifiers.

So the errno when you call tal_free() is handed to all the notifiers,
independent of what the others do.

This makes sense, but also helps for the upcoming ccan/io change.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/tal.c
ccan/tal/tal.h
ccan/tal/test/run-free.c