Skip to content
  • Rob Swindell's avatar
    7550784f
    Don't close logfile_fp before running JavaScript externals · 7550784f
    Rob Swindell authored
    This would've prevented some JS log functions from writing to the node.log file
    (which gets concatented onto the daily "system" log files).
    
    This just came up via code review while looking into Keyop's reported error:
    term Node 2 !ERROR 9 (Bad file descriptor) in main.cpp line 4606 (node_thread)
         truncating "logfile" access=0
    
    This is likely unrelated since the "logfile" is immediately re-opened after
    executing the external program/script.
    7550784f
    Don't close logfile_fp before running JavaScript externals
    Rob Swindell authored
    This would've prevented some JS log functions from writing to the node.log file
    (which gets concatented onto the daily "system" log files).
    
    This just came up via code review while looking into Keyop's reported error:
    term Node 2 !ERROR 9 (Bad file descriptor) in main.cpp line 4606 (node_thread)
         truncating "logfile" access=0
    
    This is likely unrelated since the "logfile" is immediately re-opened after
    executing the external program/script.
Loading