- rait_debug((stderr, "in parent, waiting for %d\n", pr->readres[i]));
- waitpid( pr->readres[i], &stat, 0);
- if( WEXITSTATUS(stat) != 0 ) {
- res = WEXITSTATUS(stat);
- if( res == 255 )
+ rait_debug(stderr, _("in parent, waiting for %d\n"), pr->readres[i]);
+ waitpid((pid_t)pr->readres[i], &status, 0);
+ if( WEXITSTATUS(status) != 0 ) {
+ res = WEXITSTATUS(status);
+ if( res == 255 )