Parent Directory | Revision Log
split out wireshark as separate process from kvm implemented fork_if_active (for sub-processes) and fork_actions which can be run without dependencies
1 | package wireshark; |
2 | |
3 | use warnings; |
4 | use strict; |
5 | |
6 | sub fork_actions { qw/tap0 eth0/ } |
7 | |
8 | our $AUTOLOAD; |
9 | |
10 | sub AUTOLOAD { |
11 | my $name = $AUTOLOAD; |
12 | $name =~ s/.*://; # strip fully-qualified portion |
13 | |
14 | warn "# $name"; |
15 | |
16 | exec "wireshark -k -i $name"; |
17 | } |
18 | |
19 | 1; |
ViewVC Help | |
Powered by ViewVC 1.1.26 |