MFC: r174533, r182605: + Open ctty in non-blocking mode to avoid hangs during open and close(waiting   for the port to drain). + Handle "*" as a priority properly. + Test what is free'ed. + Dynamically determine length vs. hardcoding it. + Free the previous message buffer (f_prevline) only after logging all the   messages and just before the process exit.  Also check f_prevline for NULL   before using it. + The time displayed is not synchornized with the other log destinations. + Fix a comment. + Remove extraneous NULL pointer check - the pointer is guaranteed to be   non-NULL.
MFC: r174533, r182605:
+ Open ctty in non-blocking mode to avoid hangs during open and close(waiting
  for the port to drain).
+ Handle "*" as a priority properly.
+ Test what is free'ed.
+ Dynamically determine length vs. hardcoding it.
+ Free the previous message buffer (f_prevline) only after logging all the
  messages and just before the process exit.  Also check f_prevline for NULL
  before using it.
+ The time displayed is not synchornized with the other log destinations.
+ Fix a comment.
+ Remove extraneous NULL pointer check - the pointer is guaranteed to be
  non-NULL.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase