Explicitly ignore return value from write(), to silence warning. This
warning only appeared under --disable-thread-safety.
{
fork_pthread *th;
void *ret;
+ int rc;
th = (fork_pthread *) pg_malloc(sizeof(fork_pthread));
if (pipe(th->pipes) < 0)
setalarm(duration);
ret = start_routine(arg);
- write(th->pipes[1], ret, sizeof(TResult));
+ rc = write(th->pipes[1], ret, sizeof(TResult));
+ (void) rc;
close(th->pipes[1]);
free(th);
exit(0);