summaryrefslogtreecommitdiffstats
path: root/source/smbd/aio.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-12-18 04:25:21 +0000
committerJames Peach <jpeach@samba.org>2006-12-18 04:25:21 +0000
commit4cc6db0e752e5236e15aadbb4f6503b412c38224 (patch)
treee2aeb1d67329e5183bd4cbab08260a9d6e50a061 /source/smbd/aio.c
parent8d0f9da702b937d58f64d146c567a9e0a6e0cb9c (diff)
downloadsamba-4cc6db0e752e5236e15aadbb4f6503b412c38224.tar.gz
samba-4cc6db0e752e5236e15aadbb4f6503b412c38224.tar.xz
samba-4cc6db0e752e5236e15aadbb4f6503b412c38224.zip
r20237: Replace exit_server with exit_server_cleanly where appropriate. All
send_smb failures should be clean exits. All times when we exit as a matter of policy should also be clean exits.
Diffstat (limited to 'source/smbd/aio.c')
-rw-r--r--source/smbd/aio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/aio.c b/source/smbd/aio.c
index c71c3740433..ad25242060e 100644
--- a/source/smbd/aio.c
+++ b/source/smbd/aio.c
@@ -345,7 +345,7 @@ BOOL schedule_aio_write_and_X(connection_struct *conn,
SSVAL(aio_ex->outbuf,smb_vwv4,(numtowrite>>16)&1);
show_msg(aio_ex->outbuf);
if (!send_smb(smbd_server_fd(),aio_ex->outbuf)) {
- exit_server("handle_aio_write: send_smb failed.");
+ exit_server_cleanly("handle_aio_write: send_smb failed.");
}
DEBUG(10,("schedule_aio_write_and_X: scheduled aio_write behind for file %s\n",
fsp->fsp_name ));
@@ -408,7 +408,7 @@ static int handle_aio_read_complete(struct aio_extra *aio_ex)
smb_setlen(outbuf,outsize - 4);
show_msg(outbuf);
if (!send_smb(smbd_server_fd(),outbuf)) {
- exit_server("handle_aio_read_complete: send_smb failed.");
+ exit_server_cleanly("handle_aio_read_complete: send_smb failed.");
}
DEBUG(10,("handle_aio_read_complete: scheduled aio_read completed for file %s, offset %.0f, len = %u\n",
@@ -480,7 +480,7 @@ Wanted %u bytes but only wrote %d\n", fsp->fsp_name, (unsigned int)numtowrite, (
show_msg(outbuf);
if (!send_smb(smbd_server_fd(),outbuf)) {
- exit_server("handle_aio_write: send_smb failed.");
+ exit_server_cleanly("handle_aio_write: send_smb failed.");
}
DEBUG(10,("handle_aio_write_complete: scheduled aio_write completed for file %s, offset %.0f, requested %u, written = %u\n",