Opened 18 years ago

Closed 18 years ago

#53 closed defect (fixed)

libc: freopen("missing",,) causes panic

Reported by: bird Owned by: bird
Priority: high Milestone: libc-0.6.1
Component: libc-frontend Version: 0.6
Severity: normal Keywords: freopen panic
Cc:

Description

in _fopen there are at least two fialure paths which are locking and unlocking the stream, this won't work well for freopen.

Change History (1)

comment:1 Changed 18 years ago by bird

Resolution: fixed
Status: newclosed

Hmm.. incomplete fix here, _openstream got a lock bool argument which isn't used. Made it use the argument to determing whether the stream vector lock should be taken or not.

Note: See TracTickets for help on using tickets.