X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ftest_zebra_fork.c;h=d056442318ceba1427188547cc5c07290b4cd094;hb=250de4ed23a44f5eb3552db317eef0d0fbe3265c;hp=c1e13db997cb48b3eb33ec245f77ae66e5632e35;hpb=a030c87bc444608639905eca95e29f84a4f1d991;p=idzebra-moved-to-github.git diff --git a/test/api/test_zebra_fork.c b/test/api/test_zebra_fork.c index c1e13db..d056442 100644 --- a/test/api/test_zebra_fork.c +++ b/test/api/test_zebra_fork.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_SYS_STAT_H #include #endif @@ -58,11 +61,11 @@ static void search_process(ZebraService zs, int iter) for (i = 0; i= hits_max); if (hits < hits_max) printf("i=%d hits=%lld hits_max=%lld\n", i, hits, hits_max); @@ -79,7 +82,7 @@ static pid_t fork_service(ZebraService zs, int iter, YAZ_CHECK(pid != -1); if (pid) return pid; - + (*f)(zs, iter); YAZ_CHECK_TERM; } @@ -88,7 +91,7 @@ static void tst(int argc, char **argv) { ZebraService zs; ZebraHandle zh; - + mkdir("register", 0775); mkdir("shadow", 0775);