diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 01:15:42 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 01:15:42 +0100 |
commit | 9265cb02d00843f43ba07d28093f959adf0738fe (patch) | |
tree | 9e6b268da3ac1cf2860a00e7473c308388e7a036 /source4/param | |
parent | a76adc539788337a4a3aa77f7e6ef8f4defd3141 (diff) | |
download | samba-9265cb02d00843f43ba07d28093f959adf0738fe.tar.gz samba-9265cb02d00843f43ba07d28093f959adf0738fe.tar.bz2 samba-9265cb02d00843f43ba07d28093f959adf0738fe.zip |
Use a separate global for nonblocking socket testing rather than global_loadparm.
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/loadparm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index b4098c840c..6494199fa4 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -65,6 +65,7 @@ #include "param/loadparm.h" #include "libcli/raw/libcliraw.h" #include "rpc_server/common/common.h" +#include "lib/socket/socket.h" #define standard_sub_basic talloc_strdup @@ -2475,6 +2476,8 @@ bool lp_load(struct loadparm_context *lp_ctx, const char *filename) reload_charcnv(lp_ctx); + testnonblock = lp_parm_bool(lp_ctx, NULL, "socket", "testnonblock", false); + /* FIXME: Check locale in environment for this: */ if (strcmp(lp_display_charset(lp_ctx), lp_unix_charset(lp_ctx)) != 0) d_set_iconv(smb_iconv_open(lp_display_charset(lp_ctx), lp_unix_charset(lp_ctx))); |