mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge bitcoin/bitcoin#26809: compat: use STDIN_FILENO over 0
585c6722128537f772043ef4c87238e283669b8a compat: use STDIN_FILENO over 0 (fanquake) Pull request description: This is already used throughout this file, and is self-documenting. ACKs for top commit: john-moffett: ACK 585c6722128537f772043ef4c87238e283669b8a achow101: ACK 585c6722128537f772043ef4c87238e283669b8a hebasto: ACK 585c6722128537f772043ef4c87238e283669b8a, I have reviewed the code and it looks OK, I agree it can be merged. kristapsk: utACK 585c6722128537f772043ef4c87238e283669b8a aureleoules: ACK 585c6722128537f772043ef4c87238e283669b8a Tree-SHA512: c0114ae896ba5404be70b804ee9f454d213f1d789c8f5a578c422dd15a308a214e6851fee76c0ec736a212bc86fb33ec17af1b22e5d23422c375ca4458251356
This commit is contained in:
parent
092ddc3a3e
commit
864d02e4a9
@ -62,7 +62,7 @@ bool StdinReady()
|
|||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
struct pollfd fds;
|
struct pollfd fds;
|
||||||
fds.fd = 0; /* this is STDIN */
|
fds.fd = STDIN_FILENO;
|
||||||
fds.events = POLLIN;
|
fds.events = POLLIN;
|
||||||
return poll(&fds, 1, 0) == 1;
|
return poll(&fds, 1, 0) == 1;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user