MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / StdinReady

Function StdinReady

src/compat/stdin.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65bool StdinReady()
66{
67 if (!StdinTerminal()) {
68 return true;
69 }
70#ifdef WIN32
71 return false;
72#else
73 struct pollfd fds;
74 fds.fd = STDIN_FILENO;
75 fds.events = POLLIN;
76 return poll(&fds, 1, 0) == 1;
77#endif
78}
79
80NoechoInst::NoechoInst() { SetStdinEcho(false); }
81NoechoInst::~NoechoInst() { SetStdinEcho(true); }

Callers 1

CommandLineRPCFunction · 0.85

Calls 1

StdinTerminalFunction · 0.85

Tested by

no test coverage detected