| 1 | package IO::SigGuard; | ||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||
| 3 | sub send { | ||||||||||||||||||||||||||||||||
| 4 | SEND: { | ||||||||||||||||||||||||||||||||
| 5 | 185122 | ▶ | $result = ( (@_ == 3) ? CORE::send( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::send( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! send(@_)" ) || do { | ||||||||||||||||||||||||||||||
|
Subroutine
send: called CC=5 SCAR=23.8
Pod
undocumented
Branch: 2 branches
Condition33%1/3
(@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)"))) || do {
redo SEND if $! == 4
}
MC/DC0%0/2
(@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)"))) || do {
redo SEND if $! == 4
}
(@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)")))
do {
redo SEND if $! == 4
}
Truth table33%1/3
A || B
A= (@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)")))B= do {
redo SEND if $! == 4
}
| |||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||
| 7 | #EINTR means the file pointer is unchanged. | ||||||||||||||||||||||||||||||||
| 8 | 0 | ▶ | redo SEND if $! == Errno::EINTR(); | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 9 | }; | ||||||||||||||||||||||||||||||||
| 10 | } | ||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||
| 12 | 185122 | return $result; | |||||||||||||||||||||||||||||||
| 13 | } | ||||||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||||||
| 15 | 2 | 1; | |||||||||||||||||||||||||||||||