MCPcopy Index your code
hub / github.com/git/git / is_foreground_fd

Function is_foreground_fd

progress.c:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static int is_foreground_fd(int fd)
107{
108 int tpgrp = tcgetpgrp(fd);
109 return tpgrp < 0 || tpgrp == getpgid(0);
110}
111
112static void display(struct progress *progress, uint64_t n, const char *done)
113{

Callers 1

displayFunction · 0.85

Calls 2

tcgetpgrpFunction · 0.85
getpgidFunction · 0.85

Tested by

no test coverage detected