FreeBSD Bugzilla – Attachment 5351 Details for
Bug 12853
uthread_init.c PANICs in case of (legally) close stdin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 606 bytes, created by
Mikhail Teterin
on 1999-07-28 17:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Mikhail Teterin
Created:
1999-07-28 17:40:01 UTC
Size:
606 bytes
patch
obsolete
>--- uthread_init.c.orig Wed Jul 28 10:48:25 1999 >+++ uthread_init.c Wed Jul 28 10:33:50 1999 >@@ -118,5 +118,13 @@ > if ((_pthread_stdio_flags[i] = >- _thread_sys_fcntl(i,F_GETFL, NULL)) == -1) >- PANIC("Cannot get stdio flags"); >- >+ _thread_sys_fcntl(i,F_GETFL, NULL)) == -1 && errno != EBADF) { >+ const char *panics[] = { >+ "Cannot initialize " "stdin" " file descriptor " >+ "table entry", >+ "Cannot initialize " "stdout" " file descriptor " >+ "table entry", >+ "Cannot initialize " "stderr" " file descriptor " >+ "table entry" >+ }; >+ PANIC(panics[i]); >+ } > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12853
: 5351