What does this mean? select(1, [0], [], NULL, {60, 0}) = 0 (Timeout)

Paul Slootman paul+rsync at wurtel.net
Wed Jan 24 14:43:51 UTC 2018


On Mon 22 Jan 2018, Kevin Korb via rsync wrote:

> From man 2 select:
> int select(int nfds, fd_set *readfds, fd_set *writefds,
> fd_set *exceptfds, struct timeval *timeout);
> 
> So, it is waiting for file descriptor #1 to become available with a 60
> second timeout which it is hitting.

Actually:

> > select(1, [0], [], NULL, {60, 0})

... it's waiting for file descriptor 0 to become readable.
The 1st argument 1 is "the highest-numbered file descriptor in any of
the three sets, plus 1".


Paul



More information about the rsync mailing list