Use environment variable rather than loadparm parameter when testing
[ira/wip.git] / source4 / lib / socket / socket.c
index eff2c0a74354e6ccf12ee32d6b72ed465628c052..26cdac99a3dfe7bd48dab5b2ecece75f8f774ffa 100644 (file)
@@ -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;
        }