Bug 8220
Summary: | do_acct_process is not called from do_exit | ||
---|---|---|---|
Product: | Process Management | Reporter: | Lin Tan (tammy000) |
Component: | Other | Assignee: | Olaf Kirch (okir) |
Status: | RESOLVED PATCH_ALREADY_AVAILABLE | ||
Severity: | high | CC: | okir |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.20.1 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Lin Tan
2007-03-16 16:08:02 UTC
I think the comment is somewhat ambiguous. It should probably say "This function should only be called from do_exit() or when switching to a different output file". Maybe it originally precded acct_process() - and in that case, it would even be correct. Is there any specific reason why you think this qualifies as a bug? Thanks a lot for the explanation! This was detected by a static checking tool. As the comment and code mismatch, it is either a bug or the comment is wrong or imprecise. In this case, as the comment is not correct, it may confuse and mislead developers and cause new bugs. I've found bugs caused by reading bad comments. ok, i've fixed the comment and have queued up a patch for upstream. |