aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pgbench/pgbench.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index 80203d66d17..8dc81e53335 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -2950,6 +2950,7 @@ pthread_create(pthread_t *thread,
{
fork_pthread *th;
void *ret;
+ int rc;
th = (fork_pthread *) pg_malloc(sizeof(fork_pthread));
if (pipe(th->pipes) < 0)
@@ -2979,7 +2980,8 @@ pthread_create(pthread_t *thread,
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);