Red Hat Bugzilla – Bug 76999
chat program produces incomplete logs
Last modified: 2015-01-07 19:01:29 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513
Description of problem:
I'm using a "chat -v -s -S" command to capture chat's output to my own
log file (ie. not syslog). Sometimes the log will be incomplete. It
may be missing parts from the middle of the conversation or the entire
log may be empty.
When I looked at the 'chat' source I saw that it mixes I/O modes. It
uses both "write(2,...)" and "fprintf(stderr,...)". I believe this is
the cause of the logging problems.
I patched my source to 'chat' such that it doesn't mix I/O methods.
Since then, the logs have been complete.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run logs of pppd sessions
I submitted a patch to the "linux-ppp" list on Apr 19, 2002. The
subject line was "chat timestamp patch".
Please verify this with a newer version of Red Hat Enterprise Linux or
Fedora Core and reopen it against the new version if it still occurs.
Closing as "not a bug" for now.