From 4837a68d8d61c65c10f41876cc7e096fabe8aa17 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 10 Feb 2022 09:28:53 -0500 Subject: [PATCH] LDAPContext: don't background slapd --- t/lib/LDAPContext.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/lib/LDAPContext.pm b/t/lib/LDAPContext.pm index 87a71854..bff5aa06 100644 --- a/t/lib/LDAPContext.pm +++ b/t/lib/LDAPContext.pm @@ -182,6 +182,9 @@ sub _spawn { if ($pid == 0) { exec("${\$self->{'_openldap_source'}}/libexec/slapd", + # A debug flag `-d` must be specified to avoid backgrounding, and an empty + # argument means no additional debugging. + "-d", "", # "-d", "conns", "-d", "filter", "-d", "config", "-F", $self->{"_slapd_dir"}, "-h", $self->server_url()) or die "Could not start slapd"; } else {