… | |
… | |
650 | |
650 | |
651 | =item kil $port[, @reason] |
651 | =item kil $port[, @reason] |
652 | |
652 | |
653 | Kill the specified port with the given C<@reason>. |
653 | Kill the specified port with the given C<@reason>. |
654 | |
654 | |
655 | If no C<@reason> is specified, then the port is killed "normally" (ports |
655 | If no C<@reason> is specified, then the port is killed "normally" - |
656 | monitoring other ports will not necessarily die because a port dies |
656 | monitor callback will be invoked, but the kil will not cause linked ports |
657 | "normally"). |
657 | (C<mon $mport, $lport> form) to get killed. |
658 | |
658 | |
659 | Otherwise, linked ports get killed with the same reason (second form of |
659 | If a C<@reason> is specified, then linked ports (C<mon $mport, $lport> |
660 | C<mon>, see above). |
660 | form) get killed with the same reason. |
661 | |
661 | |
662 | Runtime errors while evaluating C<rcv> callbacks or inside C<psub> blocks |
662 | Runtime errors while evaluating C<rcv> callbacks or inside C<psub> blocks |
663 | will be reported as reason C<< die => $@ >>. |
663 | will be reported as reason C<< die => $@ >>. |
664 | |
664 | |
665 | Transport/communication errors are reported as C<< transport_error => |
665 | Transport/communication errors are reported as C<< transport_error => |