rticommunity / rticonnextdds-logparser

RTI Log Parser for Connext DDS is a command-line tool that processes and enhances Connext DDS log messages making it easier to debug applications.
https://www.rti.com/developers/rti-labs/easy-debugging-with-log-parser
Apache License 2.0
13 stars 6 forks source link

Fix write-original feature when pressing Control+C #40

Closed pleonex closed 7 years ago

pleonex commented 7 years ago

LogParser can handle one SIGTERM signal (Control+C) and continue parsing logs. In this scenario, the log file created with the original logs was overwritten since the _parse_log function was called twice. Also, we weren't closing this file and that could lead to issues.