| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0f70017 commit c45623a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -172,13 +172,11 @@ inline void FileHandle::Close() { | |||
| 172 | 172 | // to notify that the file descriptor was gc'd. We want to be noisy about | |
| 173 | 173 | // this because not explicitly closing the FileHandle is a bug. | |
| 174 | 174 | env()->SetUnrefImmediate([](Environment* env, void* data) { | |
| 175 | - char msg[70]; | ||
| 176 | 175 | err_detail* detail = static_cast<err_detail*>(data); | |
| 177 | - snprintf(msg, arraysize(msg), | ||
| 178 | - "Closing file descriptor %d on garbage collection", | ||
| 179 | - detail->fd); | ||
| 176 | + ProcessEmitWarning(env, | ||
| 177 | + "Closing file descriptor %d on garbage collection", | ||
| 178 | + detail->fd); | ||
| 180 | 179 | delete detail; | |
| 181 | - ProcessEmitWarning(env, msg); | ||
| 182 | 180 | }, detail); | |
| 183 | 181 | } | |
| 184 | 182 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments