diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-03 21:55:02 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-02-28 16:40:19 +0100 |
commit | 9758afd47e12513c966aab7431dd674ce954cc59 (patch) | |
tree | 2753ceb779e9ce2eb1e3333a77081f56f5ad7bf1 /source3/smbd/globals.h | |
parent | ea5e1c5ecb7ab897a684bda88a49bb26fb557eb0 (diff) | |
download | samba-9758afd47e12513c966aab7431dd674ce954cc59.tar.gz samba-9758afd47e12513c966aab7431dd674ce954cc59.tar.bz2 samba-9758afd47e12513c966aab7431dd674ce954cc59.zip |
s3: Use poll in smbd
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r-- | source3/smbd/globals.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index c326846825..b10268e6d7 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -18,6 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "system/select.h" + #if defined(WITH_AIO) struct aio_extra; extern struct aio_extra *aio_list_head; @@ -456,6 +458,12 @@ struct smbd_server_connection { bool using_smb2; int trans_num; + /* + * Cache for calling poll(2) to avoid allocations in our + * central event loop + */ + struct pollfd *pfds; + struct files_struct *files; struct bitmap *file_bmap; int real_max_open_files; |