MCPcopy Create free account
hub / github.com/coreutils/coreutils / close_wait

Function close_wait

src/iopoll.c:199–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197/* wrapper for close() that also waits for FD if non blocking. */
198
199extern bool
200close_wait (int fd)
201{
202 while (wait_for_nonblocking_write (fd))
203 ;
204 return close (fd) == 0;
205}
206
207
208/* wrapper for write() that also waits for FD if non blocking. */

Callers 1

tee_filesFunction · 0.85

Calls 1

Tested by

no test coverage detected