8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8182ffd commit 55f100eCopy full SHA for 55f100e
contrib/pgbench/pgbench.c
@@ -2950,6 +2950,7 @@ pthread_create(pthread_t *thread,
2950
{
2951
fork_pthread *th;
2952
void *ret;
2953
+ int rc;
2954
2955
th = (fork_pthread *) pg_malloc(sizeof(fork_pthread));
2956
if (pipe(th->pipes) < 0)
@@ -2979,7 +2980,8 @@ pthread_create(pthread_t *thread,
2979
2980
setalarm(duration);
2981
2982
ret = start_routine(arg);
- write(th->pipes[1], ret, sizeof(TResult));
2983
+ rc = write(th->pipes[1], ret, sizeof(TResult));
2984
+ (void) rc;
2985
close(th->pipes[1]);
2986
free(th);
2987
exit(0);
0 commit comments