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

Unified Diff: runtime/bin/dbg_connection.cc

Issue 657213002: Fix issue 20133: do not crash if debug port is illegal. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_connection.cc
===================================================================
--- runtime/bin/dbg_connection.cc (revision 41134)
+++ runtime/bin/dbg_connection.cc (working copy)
@@ -331,6 +331,12 @@
listener_fd_ = ServerSocket::CreateBindListen(
addresses->GetAt(0)->addr(), port_number, 1);
delete addresses;
+ if (listener_fd_ < 0) {
+ fprintf(stderr, "%s", "Could not initialize debug socket\n");
+ fflush(stderr);
+ exit(255);
siva 2014/10/15 22:58:41 This file seems to use FATAL("....") whenever it g
srdjan 2014/10/16 15:47:45 FATAL crashes the VM, I assume it is used for the
+ }
+
port_number = Socket::GetPort(listener_fd_);
DebuggerConnectionImpl::StartHandler(port_number);
return port_number;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698