X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fdaemon.c;h=7422599c89ce6d30d264a388f38e84d3173a97ba;hp=e5ab37ab12a58c8dca7349ac94d78b97bd39ff99;hb=9d12e94d17d3c31124221dc914aa36c9d8154643;hpb=6407c641967e71b75507812ddf48a8bfeb4dabeb diff --git a/src/daemon.c b/src/daemon.c index e5ab37a..7422599 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) 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;