Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
106
static int is_foreground_fd(int fd)
107
{
108
int tpgrp = tcgetpgrp(fd);
109
return tpgrp < 0 || tpgrp == getpgid(0);
110
}
111
112
static void display(struct progress *progress, uint64_t n, const char *done)
113
{
Callers
1
display
Function · 0.85
Calls
2
tcgetpgrp
Function · 0.85
getpgid
Function · 0.85
Tested by
no test coverage detected