/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/* 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;