diff options
author | James Peach <jpeach@samba.org> | 2006-12-18 04:25:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:34 -0500 |
commit | 5bb49b08f3d79ef9ee17dbbd64ce90dc438d96df (patch) | |
tree | a95bb90b5776dffcc6e8658b95e329b305e95219 /source3/smbd/aio.c | |
parent | 7d4449ffa02498c5fe5dc6790d35d0477bddaa92 (diff) | |
download | samba-5bb49b08f3d79ef9ee17dbbd64ce90dc438d96df.tar.gz samba-5bb49b08f3d79ef9ee17dbbd64ce90dc438d96df.tar.bz2 samba-5bb49b08f3d79ef9ee17dbbd64ce90dc438d96df.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.
(This used to be commit d6382092e72120a3c89ffe81975e8898d454bf06)
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index c71c374043..ad25242060 100644 --- a/source3/smbd/aio.c +++ b/source3/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", |