Searched refs:pipefd (Results 1 - 2 of 2) sorted by relevance
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/ |
H A D | dfx_dumprequest.c | 222 int pipefd[2] = {-1, -1}; in DFX_ExecDump() local 225 if (syscall(SYS_pipe2, pipefd, 0) != 0) { in DFX_ExecDump() 230 pipefd[0] = g_pipeFds[WRITE_TO_DUMP][0]; in DFX_ExecDump() 231 pipefd[1] = g_pipeFds[WRITE_TO_DUMP][1]; in DFX_ExecDump() 235 if (fcntl(pipefd[1], F_SETPIPE_SZ, writeLen) < writeLen) { in DFX_ExecDump() 246 if (OHOS_TEMP_FAILURE_RETRY(writev(pipefd[1], iovs, 1)) != writeLen) { in DFX_ExecDump() 250 OHOS_TEMP_FAILURE_RETRY(dup2(pipefd[0], STDIN_FILENO)); in DFX_ExecDump() 251 if (pipefd[0] != STDIN_FILENO) { in DFX_ExecDump() 252 syscall(SYS_close, pipefd[0]); in DFX_ExecDump() 254 syscall(SYS_close, pipefd[ in DFX_ExecDump() [all...] |
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_dump.cpp | 1027 bool EpollWaitforChildProcess(pid_t &pid, int &pipefd)
in EpollWaitforChildProcess() argument 1037 event.data.fd = pipefd;
in EpollWaitforChildProcess() 1038 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd, &event) == -1) {
in EpollWaitforChildProcess() 1051 close(pipefd);
in EpollWaitforChildProcess() 1060 close(pipefd);
in EpollWaitforChildProcess() 1064 read(pipefd, &g_dumpStatus, sizeof(g_dumpStatus));
in EpollWaitforChildProcess() 1065 close(pipefd);
in EpollWaitforChildProcess() 1075 int pipefd[2];
in DumpTraceInner() local 1076 if (pipe(pipefd) == -1) {
in DumpTraceInner() 1090 close(pipefd[ in DumpTraceInner() [all...] |
Completed in 7 milliseconds