Re: [HACKERS] Having no luck with getting pgbench to run multiple

2002-09-20 Thread Greg Copeland
Well, you'll probably want to pass in a valid timeval structure if you don't want it to block. Basically, that snippet tells select on the list of sockets, looking for sockets that have data to be read while waiting forever. That means it will block until something appears on one of the sockets

[HACKERS] Having no luck with getting pgbench to run multiple times

2002-09-19 Thread Justin Clift
Hi everyone, Am trying my hand at a bit of C code again. Specifically am trying to get Tatsuo's "pgbench" code to loop around more than once, but it keeps on hanging forever at this line: if ((nsocks = select(maxsock + 1, &input_mask, (fd_set *) NULL, (fd_set *) NULL, (struct timeval *)