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

Function ifsync

src/dd.c:1318–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316/* Restart on EINTR from fsync. */
1317
1318static int
1319ifsync (int fd)
1320{
1321 int ret;
1322
1323 do
1324 {
1325 process_signals ();
1326 ret = fsync (fd);
1327 }
1328 while (ret < 0 && errno == EINTR);
1329
1330 return ret;
1331}
1332
1333/* Restart on EINTR from ftruncate. */
1334

Callers 1

synchronize_outputFunction · 0.85

Calls 1

process_signalsFunction · 0.70

Tested by

no test coverage detected