Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Issue 7334010: second attempt at correcting fopen (hangs when trying to read from a dir) (Closed)

Created:
9 years, 5 months ago by Yang
Modified:
3 years, 4 months ago
Reviewers:
Sven Panne
CC:
v8-dev
Visibility:
Public.

Description

second attempt at correcting fopen (hangs when trying to read from a dir) Committed: http://code.google.com/p/v8/source/detail?r=8611

Patch Set 1 #

Total comments: 1

Patch Set 2 : implemented suggestionswq #

Patch Set 3 : minor change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M src/platform-posix.cc View 1 2 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Yang
Hi Sven, entspricht das in etwa deiner Vorstellung? :) Yang
9 years, 5 months ago (2011-07-11 14:30:42 UTC) #1
Yang
My bad. Should have written in English. Changed v8::internal::FOpen for POSIX according to what we ...
9 years, 5 months ago (2011-07-11 14:37:14 UTC) #2
Sven Panne
http://codereview.chromium.org/7334010/diff/1/src/platform-posix.cc File src/platform-posix.cc (right): http://codereview.chromium.org/7334010/diff/1/src/platform-posix.cc#newcode137 src/platform-posix.cc:137: if (fstat(fileno(file), &file_stat) == 0 && (file_stat.st_mode & S_IFREG)) ...
9 years, 5 months ago (2011-07-11 15:02:41 UTC) #3
Yang
how about this?
9 years, 5 months ago (2011-07-11 15:16:46 UTC) #4
Yang
minor change
9 years, 5 months ago (2011-07-11 15:18:06 UTC) #5
Sven Panne
LGTM
9 years, 5 months ago (2011-07-11 15:19:20 UTC) #6
i.maidanski
3 years, 4 months ago (2017-08-03 09:40:26 UTC) #7
Message was sent while issue was closed.
On 2011/07/11 15:16:46, Yang wrote:
> how about this?

I've found a handle leak in your commit: fclose() is needed when fstat fails
(see my comment in
https://github.com/v8/v8/commit/216a3935c9490ae60f7f80f7dd32c2422e06a72c).

Could you make a fix?

Powered by Google App Engine
This is Rietveld 408576698