… | … | ||
---|---|---|---|
280 | } | 280 | } |
281 | 281 | ||
282 | close $fh; | 282 | close $fh; |
283 | fcntl $FH, F_SETFL, O_NONBLOCK; | 283 | fcntl $FH, F_SETFL, O_NONBLOCK; |
284 | 284 | ||
285 | $CB{die} = sub { | 285 | $CB{die} = sub { die shift }; |
286 | die shift; | ||
287 | }; | ||
288 | 286 | ||
289 | $fh_r_watcher = AnyEvent->io (fh => $FH, poll => 'r', cb => \&fh_read); | 287 | $fh_r_watcher = AnyEvent->io (fh => $FH, poll => 'r', cb => \&fh_read); |
290 | 288 | ||
291 | sync_tick; | 289 | sync_tick; |
292 | } | 290 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |