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

Function wait_for_pager

pager.c:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void wait_for_pager(void)
48{
49 if (old_fd1 == -1)
50 return;
51
52 finish_pager();
53 sigchain_pop_common();
54 unsetenv("GIT_PAGER_IN_USE");
55 dup2(old_fd1, 1);
56 close(old_fd1);
57 old_fd1 = -1;
58 if (old_fd2 != -1) {
59 dup2(old_fd2, 2);
60 close(old_fd2);
61 old_fd2 = -1;
62 }
63}
64
65static void wait_for_pager_signal(int signo)
66{

Callers 1

patch_update_fileFunction · 0.85

Calls 2

finish_pagerFunction · 0.85
sigchain_pop_commonFunction · 0.85

Tested by

no test coverage detected