diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-14 18:51:55 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-14 18:51:55 +0200 |
commit | 91c834d2b3ae4bef034a4ae8be51f4b86e287430 (patch) | |
tree | 7a6257adb16eb78ff5d25d9b43c4f4b6c7b62fba | |
parent | c5ba8af9c78d7f6078500cb6928ab95b7672c7df (diff) |
Use fork instead of threads, as a temporary measure.
-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(); } |