git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3:unix_msg: remember errno in unix_dgram_send_job in case of send error.
[obnox/samba/samba-obnox.git]
/
source3
/
lib
/
unix_msg
/
unix_msg.c
diff --git
a/source3/lib/unix_msg/unix_msg.c
b/source3/lib/unix_msg/unix_msg.c
index c3bcb56b19246503a2265bfe035f5f97f4b4c959..e6e7e020ee29c51279385e4b0225047c48b079ee 100644
(file)
--- a/
source3/lib/unix_msg/unix_msg.c
+++ b/
source3/lib/unix_msg/unix_msg.c
@@
-579,6
+579,10
@@
static void unix_dgram_send_job(void *private_data)
do {
dmsg->sent = sendmsg(dmsg->sock, &msg, 0);
} while ((dmsg->sent == -1) && (errno == EINTR));
+
+ if (dmsg->sent == -1) {
+ dmsg->sys_errno = errno;
+ }
}
static void unix_dgram_job_finished(struct poll_watch *w, int fd, short events,