MCPcopy Create free account
hub / github.com/gwsw/less / close_pipe

Function close_pipe

edit.c:146–159  ·  view source on GitHub ↗

* Close a pipe opened via popen. */

Source from the content-addressed store, hash-verified

144 * Close a pipe opened via popen.
145 */
146 static void
147close_pipe(FILE *pipefd)
148{
149 if (pipefd == NULL)
150 return;
151#if OS2
152 /*
153 * The pclose function of OS/2 emx sometimes fails.
154 * Send SIGINT to the piped process before closing it.
155 */
156 kill(pipefd->_pid, SIGINT);
157#endif
158 pclose(pipefd);
159}
160
161/*
162 * Close the current input file.

Callers 2

close_fileFunction · 0.85
edit_ifileFunction · 0.85

Calls 1

pcloseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…