static void mpxstart(void) { int fds[2]; pipe(fds); mpxfd = fds[0]; mpxsfd = fds[1]; mpxresume(); }
void ttsusp(void) { int omode; omode = ttymode; mpxsusp(); ttclsn(); fprintf(stderr, (char *)joe_gettext(_("You have suspended the program. Type 'fg' to return\n"))); kill(0, SIGTSTP); if (omode) ttopnn(); if (ackkbd!= -1) mpxresume(); }
void ttsusp(void) { int omode; #ifdef SIGTSTP omode = ttymode; mpxsusp(); ttclsn(); fprintf(stderr, (char *)joe_gettext(_("You have suspended the program. Type 'fg' to return\n"))); kill(0, SIGTSTP); #ifdef junk /* Hmmm... this should not have been necessary */ if (ackkbd != -1) kill(kbdpid, SIGCONT); #endif if (omode) ttopnn(); if (ackkbd!= -1) mpxresume(); #else ttshell(NULL); #endif }