X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fdaemon.c;h=7422599c89ce6d30d264a388f38e84d3173a97ba;hp=3b757e1caee0d4a3a17687019ca972cd5e9324f7;hb=480f849f7e012d2d742d2d1dffbd1b0691dcd33a;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/src/daemon.c b/src/daemon.c index 3b757e1..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-2013 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;