Searched refs:PCpipe (Results 1 - 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/ttymon/
H A Dtmglobal.c42 int PCpipe[2]; /* pipe between Parent & Children */ variable
H A Dttymon.c651 if (pipe(PCpipe) == -1)
655 if (fcntl(PCpipe[0], F_SETFD, 1) == -1)
658 if (fcntl(PCpipe[1], F_SETFD, 1) == -1)
662 if (fcntl(PCpipe[0], F_GETFL, flag) == -1)
666 if (fcntl(PCpipe[0], F_SETFL, flag) == -1)
670 if (ioctl(PCpipe[0], I_SRDOPT, RMSGD) == -1)
674 if (ioctl(PCpipe[0], I_SETSIG, S_INPUT) == -1)
678 log("PCpipe[0]\t = %d", PCpipe[0]);
679 log("PCpipe[
[all...]
H A Dtmextern.h133 extern int PCpipe[];
H A Dtmchild.c77 (void) close(PCpipe[0]); /* close parent end of the pipe */
78 if (ioctl(PCpipe[1], I_SETSIG, S_HANGUP) == -1) {
86 if (check_hup(PCpipe[1])) {
88 debug("PCpipe hungup, tmchild exiting");
533 inform_parent(PCpipe[1]);
H A Dtmhandler.c355 * closing PCpipe will cause attached non-service children
358 (void)close(PCpipe[0]);
359 (void)close(PCpipe[1]);
361 /* reopen PCpipe */
493 * read_pid(fd) - read pid info from PCpipe
508 fatal("read PCpipe failed: %s", strerror(errno));
521 * - it will check both PCpipe and pmpipe
533 pfd[0].fd = PCpipe[0];

Completed in 60 milliseconds