Skip to content

Commit

Permalink
[Fix] custom signature runtime files grow exponentially in monitor mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rfxn committed Dec 6, 2016
1 parent 5f7fb0c commit c8a1279
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/internals/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1646,9 +1646,12 @@ EOT
gensigs() {
runtime_ndb="$tmpdir/.runtime.user.$$.ndb"
runtime_hdb="$tmpdir/.runtime.user.$$.hdb"
runtime_hexstrings="$tmpdir/.runtime.hexsigs.$$"
rm -f $runtime_ndb $runtime_hdb $runtime_hexstrings
touch $runtime_ndb $runtime_hdb $runtime_hexstrings
chmod 640 $runtime_ndb $runtime_hdb $runtime_hexstrings
ln -fs $runtime_ndb $sigdir/lmd.user.ndb
ln -fs $runtime_hdb $sigdir/lmd.user.hdb
runtime_hexstrings="$tmpdir/.runtime.hexsigs.$$"
if [ -s "$sig_cust_hex_file" ]; then
cat "$sig_hex_file" "$sig_cust_hex_file" > $runtime_hexstrings
else
Expand Down

0 comments on commit c8a1279

Please sign in to comment.