Add epoll and do more release readiness changes
This change also pays off some of the remaining technical debt with stdio, file descriptors, and memory managemnt polyfills.
This commit is contained in:
@@ -37,10 +37,12 @@
|
||||
*/
|
||||
int fclose(FILE *f) {
|
||||
int rc;
|
||||
if (!f) return 0; /* good java behavior; glibc crashes */
|
||||
if (!f) return 0;
|
||||
_fflushunregister(f);
|
||||
fflush(f);
|
||||
free_s(&f->buf);
|
||||
if (!f->nofree) {
|
||||
free_s(&f->buf);
|
||||
}
|
||||
f->state = EOF;
|
||||
if (f->noclose) {
|
||||
f->fd = -1;
|
||||
|
||||
Reference in New Issue
Block a user