]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Ensure we handle signals correctly during the async calls.
authorJeremy Allison <jra@samba.org>
Thu, 9 Oct 2008 22:40:00 +0000 (15:40 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 9 Oct 2008 22:40:00 +0000 (15:40 -0700)
Jeremy.

source3/libsmb/async_smb.c

index fb35ecbe1fb6c1680ad1890f2162afc6206eec9e..68495076b636b34df260c2b85a33ad2792153116 100644 (file)
@@ -924,7 +924,7 @@ static void cli_state_handler(struct event_context *event_ctx,
                }
                cli->evt_inbuf = tmp;
 
-               res = recv(cli->fd, cli->evt_inbuf + old_size, available, 0);
+               res = sys_recv(cli->fd, cli->evt_inbuf + old_size, available, 0);
                if (res == -1) {
                        DEBUG(10, ("recv failed: %s\n", strerror(errno)));
                        status = map_nt_error_from_unix(errno);
@@ -970,7 +970,7 @@ static void cli_state_handler(struct event_context *event_ctx,
                        return;
                }
 
-               sent = send(cli->fd, req->outbuf + req->sent,
+               sent = sys_send(cli->fd, req->outbuf + req->sent,
                            to_send - req->sent, 0);
 
                if (sent < 0) {