Lines Matching defs:wanttty
66 volatile int wanttty = wtty;
74 UNREGISTER(wanttty);
83 wanttty = 0;
206 if (wanttty >= 0 && !nosigchld) {
213 pid = pfork(t, wanttty);
235 if (wanttty >= 0 && !nosigchld && !noexec) {
319 if (wanttty >= 0) {
333 pgetty(wanttty, pgrp);
390 wanttty = -1;
392 execute(t->t_dspr, wanttty, NULL, NULL);
398 execute(t->t_dcar, wanttty, pipein, pv);
401 if (wanttty > 0)
402 wanttty = 0; /* got tty already */
403 execute(t->t_dcdr, wanttty, pv, pipeout);
408 execute(t->t_dcar, wanttty, NULL, NULL);
419 execute(t->t_dcdr, wanttty, NULL, NULL);
426 execute(t->t_dcar, wanttty, NULL, NULL);
434 execute(t->t_dcdr, wanttty, NULL, NULL);