Chromium Code Reviews| Index: chromeos/dbus/debug_daemon_client.cc |
| diff --git a/chromeos/dbus/debug_daemon_client.cc b/chromeos/dbus/debug_daemon_client.cc |
| index 05d3b394ddce75695455ce808f9ccd1209c04f3f..f129e66a80a8fd791d412229931773c6672fac5e 100644 |
| --- a/chromeos/dbus/debug_daemon_client.cc |
| +++ b/chromeos/dbus/debug_daemon_client.cc |
| @@ -52,7 +52,7 @@ class PipeReader { |
| virtual ~PipeReader() { |
| if (pipe_fd_[0] != -1) |
| - if (HANDLE_EINTR(close(pipe_fd_[0])) < 0) |
| + if (!data_stream_.get() && HANDLE_EINTR(close(pipe_fd_[0])) < 0) |
| PLOG(ERROR) << "close[0]"; |
|
satorux1
2012/11/05 03:18:35
Can we remove the line 54-56?
pipe_fd_[0] is clos
pivanof
2012/11/05 05:17:46
For some reason I thought that there can be situat
|
| if (pipe_fd_[1] != -1) |
| if (HANDLE_EINTR(close(pipe_fd_[1])) < 0) |