Home
last modified time | relevance | path

Searched refs:exitPipefd (Results 1 – 1 of 1) sorted by relevance

/openbmc/phosphor-bmc-code-mgmt/common/src/
H A Dutils.cpp11 int exitPipefd[2]; in asyncSystem() local
14 if (pipe(exitPipefd) == -1 || (result && pipe(resultPipefd) == -1)) in asyncSystem()
23 close(exitPipefd[0]); in asyncSystem()
34 ssize_t status = write(exitPipefd[1], &exitCode, sizeof(exitCode)); in asyncSystem()
36 close(exitPipefd[1]); in asyncSystem()
41 close(exitPipefd[1]); in asyncSystem()
49 std::make_unique<sdbusplus::async::fdio>(ctx, exitPipefd[0]); in asyncSystem()
54 close(exitPipefd[0]); in asyncSystem()
74 ssize_t bytesRead = read(exitPipefd[0], &exitCode, sizeof(exitCode)); in asyncSystem()
75 close(exitPipefd[0]); in asyncSystem()
[all …]