CLI argument to shell example callback

Save state of netconf chunked framing between inputs
Treat EBADF in internal protocol (triggered by freebsd+notifications)
Test: chunked encoding: use printf instead of echo
This commit is contained in:
Olof hagsand 2022-04-10 10:31:03 +02:00
parent ac7673bc35
commit ecac027d18
7 changed files with 45 additions and 17 deletions

View file

@ -281,7 +281,8 @@ atomicio(ssize_t (*fn) (int, void *, size_t),
res = 0;
else if (errno == EPIPE) /* Client shutdown */
res = 0;
/* SIGPIPE if client is killed */
else if (errno == EBADF) /* client shutdown - freebsd */
res = 0;
case 0: /* fall thru */
return (res);
default: