| blib/lib/IO/SigGuard/send.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| statement | 3 | 3 | 100.0 | 
| branch | n/a | ||
| condition | 1 | 3 | 33.3 | 
| subroutine | 1 | 1 | 100.0 | 
| pod | 0 | 1 | 0.0 | 
| total | 5 | 8 | 62.5 | 
| line | stmt | bran | cond | sub | pod | time | code | 
|---|---|---|---|---|---|---|---|
| 1 | package IO::SigGuard; | ||||||
| 2 | |||||||
| 3 | sub send { | ||||||
| 4 | SEND: { | ||||||
| 5 | 193009 | 33 | 193009 | 0 | 891546 | $result = ( (@_ == 3) ? CORE::send( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::send( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! send(@_)" ) || do { | |
| 193009 | 5929926 | ||||||
| 6 | |||||||
| 7 | #EINTR means the file pointer is unchanged. | ||||||
| 8 | redo SEND if $! == Errno::EINTR(); | ||||||
| 9 | }; | ||||||
| 10 | } | ||||||
| 11 | |||||||
| 12 | 193009 | 515522 | return $result; | ||||
| 13 | } | ||||||
| 14 | |||||||
| 15 | 1; |