TEST: change the code position of calling fork().
@@ -1030,12 +1030,12 @@ sub new_memcached {
}
$args .= " -E $builddir/.libs/default_engine.so";
- my $childpid = fork();
-
my $exe = "$builddir/memcached";
croak("memcached binary doesn't exist. Haven't run 'make' ?\n") unless -e $exe;
croak("memcached binary not executable\n") unless -x _;
+ my $childpid = fork();
+
unless ($childpid) {
exec "$builddir/timedrun 600 $exe $args";
exit; # never gets here.
@@ -1098,12 +1098,12 @@ sub new_memcached_engine {
}
$args .= " -E $builddir/.libs/$engine\_engine.so";
- my $childpid = fork();
-
my $exe = "$builddir/memcached";
croak("memcached binary doesn't exist. Haven't run 'make' ?\n") unless -e $exe;
croak("memcached binary not executable\n") unless -x _;
+ my $childpid = fork();
+
unless ($childpid) {
exec "$builddir/timedrun 600 $exe $args";
exit; # never gets here.
