Skip to content
Snippets Groups Projects
Commit 290c5f13 authored by Shashi Guruprasad's avatar Shashi Guruprasad
Browse files

Fix in dotrafficconfig(). While adding the REMOTE() check, a variable's

scope was inadvartently reduced to the if block instead of the entire
dotrafficconfig() function. This caused nse not to start up automatically
parent ce9583ba
No related branches found
No related tags found
No related merge requests found
...@@ -1139,6 +1139,7 @@ sub dotrafficconfig() ...@@ -1139,6 +1139,7 @@ sub dotrafficconfig()
my $TM; my $TM;
my $boss; my $boss;
my $startnse = 0; my $startnse = 0;
my $nseconfig = "";
# #
# Kinda ugly, but there is too much perl goo included by Socket to put it # Kinda ugly, but there is too much perl goo included by Socket to put it
...@@ -1283,7 +1284,7 @@ sub dotrafficconfig() ...@@ -1283,7 +1284,7 @@ sub dotrafficconfig()
$TM = OPENTMCC(TMCCCMD_NSECONFIGS); $TM = OPENTMCC(TMCCCMD_NSECONFIGS);
$record_sep = $/; $record_sep = $/;
undef($/); undef($/);
my $nseconfig = <$TM>; $nseconfig = <$TM>;
$/ = $record_sep; $/ = $record_sep;
print NSECFG $nseconfig; print NSECFG $nseconfig;
CLOSETMCC($TM); CLOSETMCC($TM);
......
...@@ -1139,6 +1139,7 @@ sub dotrafficconfig() ...@@ -1139,6 +1139,7 @@ sub dotrafficconfig()
my $TM; my $TM;
my $boss; my $boss;
my $startnse = 0; my $startnse = 0;
my $nseconfig = "";
# #
# Kinda ugly, but there is too much perl goo included by Socket to put it # Kinda ugly, but there is too much perl goo included by Socket to put it
...@@ -1283,7 +1284,7 @@ sub dotrafficconfig() ...@@ -1283,7 +1284,7 @@ sub dotrafficconfig()
$TM = OPENTMCC(TMCCCMD_NSECONFIGS); $TM = OPENTMCC(TMCCCMD_NSECONFIGS);
$record_sep = $/; $record_sep = $/;
undef($/); undef($/);
my $nseconfig = <$TM>; $nseconfig = <$TM>;
$/ = $record_sep; $/ = $record_sep;
print NSECFG $nseconfig; print NSECFG $nseconfig;
CLOSETMCC($TM); CLOSETMCC($TM);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment