This patch needs changes too, b/c this function shouldn't return errno for the same reason you pointed in the patch 4, errno is set in another thread. In addition, I'm setting err to EINVAL just above and then ignoring it.
Please see my comments on the patch 4. Missatge de Samuel Thibault <samuel.thiba...@gnu.org> del dia dj., 2 de maig 2019 a les 23:58: > > Joan Lledó, le jeu. 02 mai 2019 11:55:01 +0200, a ecrit: > > * lwip/lwip-util.c: > > * Check for errors when calling update_if() > > inside a thread-safe context. > > Applied, thanks!