summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-02 17:21:46 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-02 17:21:46 +0100
commit28d374ec159b9af405a9ef128e8439ac42245a82 (patch)
treeeda4d473c30f3e258c199e0a2cad07559e172cdd /source4/lib
parent62c57cb4006ca8678ac5a94cdd1d31af3f9f0a21 (diff)
downloadsamba-28d374ec159b9af405a9ef128e8439ac42245a82.tar.gz
samba-28d374ec159b9af405a9ef128e8439ac42245a82.tar.bz2
samba-28d374ec159b9af405a9ef128e8439ac42245a82.zip
Use environment variable rather than loadparm parameter when testing
nonblocking sockets.
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c
index eff2c0a743..26cdac99a3 100644
--- a/source4/lib/socket/socket.c
+++ b/source4/lib/socket/socket.c
@@ -70,7 +70,7 @@ _PUBLIC_ NTSTATUS socket_create_with_ops(TALLOC_CTX *mem_ctx, const struct socke
if (!(flags & SOCKET_FLAG_BLOCK) &&
type == SOCKET_TYPE_STREAM &&
- lp_parm_bool(global_loadparm, NULL, "socket", "testnonblock", false)) {
+ getenv("SOCKET_TESTNONBLOCK") != NULL) {
(*new_sock)->flags |= SOCKET_FLAG_TESTNONBLOCK;
}