diff --git a/sandboxed_api/tools/filewrapper/filewrapper.cc b/sandboxed_api/tools/filewrapper/filewrapper.cc index ed8fcf0..863c1ad 100644 --- a/sandboxed_api/tools/filewrapper/filewrapper.cc +++ b/sandboxed_api/tools/filewrapper/filewrapper.cc @@ -97,7 +97,12 @@ class File { } ~File() { fclose(stream_); } - void Check() { SAPI_RAW_PCHECK(!ferror(stream_), "I/O on %s", name_); } + void Check() { + if (ferror(stream_)) { + SAPI_RAW_PLOG(ERROR, "I/O on %s", name_); + _Exit(EXIT_FAILURE); + } + } FILE* get() const { return stream_; }