X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fdaemon.c;h=87db405eac4354674464b1eb731d101313e2b9a0;hb=cca8a96be6d6ce6de52009e53e23876ce2fc195c;hp=e5ab37ab12a58c8dca7349ac94d78b97bd39ff99;hpb=6407c641967e71b75507812ddf48a8bfeb4dabeb;p=yaz-moved-to-github.git diff --git a/src/daemon.c b/src/daemon.c index e5ab37a..87db405 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -127,7 +127,7 @@ static void keepalive(void (*work)(void *data), void *data) /* enable signalling in kill_child_handler */ child_pid = p; - p1 = wait(&status); + p1 = waitpid(p, &status, 0); /* disable signalling in kill_child_handler */ child_pid = 0;