| | 2655 | | change_output(tp, outtid, outctx, outtag) |
| | 2656 | | struct task *tp; |
| | 2657 | | int outtid, outctx, outtag; |
| | 2658 | | { |
| | 2659 | | struct pmsg *mp; |
| | 2660 | | |
| | 2661 | | if (tp->t_outtid != outtid |
| | 2662 | | || tp->t_outctx != outctx |
| | 2663 | | || tp->t_outtag != outtag) { |
| | 2664 | | if (tp->t_outtid > 0) { |
| | 2665 | | mp = mesg_new(0); |
| | 2666 | | mp->m_dst = tp->t_outtid; |
| | 2667 | | mp->m_ctx = tp->t_outctx; |
| | 2668 | | mp->m_tag = tp->t_outtag; |
| | 2669 | | pkint(mp, tp->t_tid); |
| | 2670 | | pkint(mp, TO_EOF);
|
| | 2671 | | sendmessage(mp); |
| | 2672 | | } |
| | 2673 | | if (pvmdebmask & PDMTASK) {
|
| | 2674 | | pvmlogprintf("t%x changes output from <t%x %d %d> to <t%x %d %d>\n", |
| | 2675 | | tp->t_tid, |
| | 2676 | | tp->t_outtid, tp->t_outctx, tp->t_outtag, |
| | 2677 | | outtid, outctx, outtag); |
| | 2678 | | } |
| | 2679 | | tp->t_outtid = outtid; |
| | 2680 | | tp->t_outctx = outctx; |
| | 2681 | | tp->t_outtag = outtag; |
| | 2682 | | if (tp->t_outtid > 0) { |