diff options
Diffstat (limited to 'clients')
| -rwxr-xr-x | clients/snmpfetch.pl | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/clients/snmpfetch.pl b/clients/snmpfetch.pl index eadf9da..b8d64e4 100755 --- a/clients/snmpfetch.pl +++ b/clients/snmpfetch.pl @@ -17,7 +17,11 @@ if (defined($ARGV[0])) {  } else {  	my $threads = 50;  	for (1..$threads) { -		threads->create(\&poll_loop); +		if (fork() == 0) { +			# child +			poll_loop(); +			exit; +		}  	}  	poll_loop();	  } | 
