Closed
Bug 156505
Opened 23 years ago
Closed 23 years ago
xpcshell is missing a fflush
Categories
(Core :: XPConnect, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: timeless, Assigned: mkaply)
References
()
Details
Attachments
(1 file, 2 obsolete files)
|
1.10 KB,
patch
|
brendan
:
superreview+
|
Details | Diff | Splinter Review |
os/2 4.52, nightly from today
I ran xpcshell and didn't get a prompt which confused me, i thought it was still
loading...
[C:\drop\mozilla-nightly]xpcshell
1
js> 1
1+1
js> js> 2
the prompt isn't appearing until after the input or something..
i guessed fflush and mkaply confirms that it fixes it.
| Assignee | ||
Comment 1•23 years ago
|
||
Added fflush in the prompt case.
Should we fflush after each fprintf?
Comment 2•23 years ago
|
||
Comment on attachment 90640 [details] [diff] [review]
Fix
r=dbradley
It's ambiguous enough that adding this is probably the right thing to do.
There's a good discussion at:
http://groups.google.com/groups?q=printf+stdin+buffer+line+%22interactive+devic
e%22+console&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=PSHUANG.93May28210433%40ninja.mit
.edu&rnum=1
No, we shouldn't need this on every fprintf. The one for the prompt should
suffice, since it's always the last thing printed before input is asked, thus
all previous output will be flushed as well
Attachment #90640 -
Flags: review+
Comment 3•23 years ago
|
||
Since you did the patch, do you want to see that it gets in. Feel free to throw
it back my way if you want.
Assignee: dbradley → mkaply
Comment 4•23 years ago
|
||
Would this not also be a problem in js.c too? It is good to keep the common
portions of these two apps in sync.
| Assignee | ||
Comment 5•23 years ago
|
||
Attachment #90640 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•23 years ago
|
||
Attachment #115403 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•23 years ago
|
||
Comment on attachment 115404 [details] [diff] [review]
Let's try this again
brendan, could you r/sr this one?
It's an easy change.
thanks
Attachment #115404 -
Flags: superreview?(brendan)
Updated•23 years ago
|
Attachment #115404 -
Flags: superreview?(brendan) → superreview+
| Assignee | ||
Comment 8•23 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•