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

Unified Diff: runtime/bin/process_impl.dart

Issue 9120004: Fix assertion failure in Process object, where non-integer pid could be passed to kill. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/process_impl.dart
diff --git a/runtime/bin/process_impl.dart b/runtime/bin/process_impl.dart
index 86666700ec3b5b44d964b86d3a4bbdcfdbe947a4..dc1f94524fc08f3e1187abd2d6e3621e7b108425 100644
--- a/runtime/bin/process_impl.dart
+++ b/runtime/bin/process_impl.dart
@@ -151,8 +151,10 @@ class _Process implements Process {
}
void kill() {
- if (_closed && _pid === null && _errorHandler !== null) {
- _errorHandler(new ProcessException("Process closed"));
+ if (_closed && _pid === null) {
Søren Gjesse 2012/01/06 13:43:20 So we cannot ever have !_closed and _pid == null?
+ if (_errorHandler !== null) {
+ _errorHandler(new ProcessException("Process closed"));
+ }
return;
}
if (_killed) {
« 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