diff options
author | Jeremy Allison <jra@samba.org> | 2008-10-09 15:40:00 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-10-09 15:40:00 -0700 |
commit | decd04d946287729866f6b43648d34650211b073 (patch) | |
tree | f1d027401834799b6923b0368b1542ed2378d063 /source3/libsmb | |
parent | e5692d4cbe70dc4f2aba88db4fa3b68c572c6142 (diff) | |
download | samba-decd04d946287729866f6b43648d34650211b073.tar.gz samba-decd04d946287729866f6b43648d34650211b073.tar.bz2 samba-decd04d946287729866f6b43648d34650211b073.zip |
Ensure we handle signals correctly during the async calls.
Jeremy.
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/async_smb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index fb35ecbe1f..68495076b6 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -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) { |