From 5df1fda0f5f775c0ccf23412b29b2fd8b013156e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 25 Jun 2012 12:23:22 +0200 Subject: s3: Restore async i/o with the "native" AIO interface eff3609 moved the async signal handler initialization to later in the process to enable aio_fork and aio_pthread on platforms without realtime signals. This commit broke the use of the native aio interface. aio_pending_size is initialized to 0, so aio.c will not allow async i/0 at all if modules do not set that variable correctly. Initialize to 100 right from the start. Signed-off-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Tue Jun 26 14:08:22 CEST 2012 on sn-devel-104 --- source3/smbd/aio.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source3/smbd/aio.c') diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 7ba0bdc066..ec68b90452 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -91,9 +91,6 @@ bool initialize_async_io_handler(void) DEBUG(10, ("Failed to setup RT_SIGNAL_AIO handler\n")); return false; } - - /* tevent supports 100 signal with SA_SIGINFO */ - aio_pending_size = 100; return true; } -- cgit