#include "system/network.h"
#include "param/param.h"
+bool testnonblock = false;
+
/*
auto-close sockets on free
*/
if (!(flags & SOCKET_FLAG_BLOCK) &&
type == SOCKET_TYPE_STREAM &&
- lp_parm_bool(global_loadparm, NULL, "socket", "testnonblock", false)) {
+ testnonblock) {
(*new_sock)->flags |= SOCKET_FLAG_TESTNONBLOCK;
}
void set_socket_options(int fd, const char *options);
void socket_set_flags(struct socket_context *socket, unsigned flags);
+extern bool testnonblock;
+
#endif /* _SAMBA_SOCKET_H */
#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
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)));