Opened 20 years ago
Closed 20 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.
Note:
See TracTickets
for help on using tickets.

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.