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

Issue 5757001: Wait for child to exit after killing it. (Closed)

Created:
10 years ago by sosa
Modified:
9 years, 6 months ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Wait for child to exit after killing it. Use general purpose wait in case your connecting to a vm that you didn't start. Change-Id: Ie67e2d3235882d372d04e4a44d0781ddfc8d4645 BUG=chromium-os:10121 TEST=Ran it, caused some crashes. Still ran test after retries. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=4a5d7d9

Patch Set 1 #

Total comments: 1

Patch Set 2 : Timeouts #

Patch Set 3 : doc #

Total comments: 2

Patch Set 4 : Change to blocking_kill #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M lib/cros_vm_lib.sh View 1 2 3 2 chunks +20 lines, -1 line 1 comment Download

Messages

Total messages: 6 (0 generated)
sosa
10 years ago (2010-12-09 22:21:36 UTC) #1
petkov
LGTM http://codereview.chromium.org/5757001/diff/1/lib/cros_vm_lib.sh File lib/cros_vm_lib.sh (right): http://codereview.chromium.org/5757001/diff/1/lib/cros_vm_lib.sh#newcode25 lib/cros_vm_lib.sh:25: while ps -p ${1} > /dev/null; do do ...
10 years ago (2010-12-09 22:29:02 UTC) #2
sosa
PTAL Added backoff timeout and max timeout wait with a bonus kill -9 in event ...
10 years ago (2010-12-09 22:53:26 UTC) #3
petkov
http://codereview.chromium.org/5757001/diff/7001/lib/cros_vm_lib.sh File lib/cros_vm_lib.sh (right): http://codereview.chromium.org/5757001/diff/7001/lib/cros_vm_lib.sh#newcode23 lib/cros_vm_lib.sh:23: # Incrementally backs off timeouts until it is waiting ...
10 years ago (2010-12-09 23:01:28 UTC) #4
sosa
PTAL
10 years ago (2010-12-09 23:18:15 UTC) #5
petkov
10 years ago (2010-12-09 23:37:17 UTC) #6
LGTM w/ one concern

http://codereview.chromium.org/5757001/diff/12001/lib/cros_vm_lib.sh
File lib/cros_vm_lib.sh (right):

http://codereview.chromium.org/5757001/diff/12001/lib/cros_vm_lib.sh#newcode38
lib/cros_vm_lib.sh:38: ! ps -p ${1} > /dev/null
don't know bash enough -- are you sure ! switched exit code 0 to non-zero and
vice-versa?

Powered by Google App Engine
This is Rietveld 408576698