Skip to content

Commit 98c95dd

Browse files
committed
Slight mod to the indirect debugger example
Shorten the launcher timeout a bit, and directly exit instead of trying to do an organized finalize as that might hang, depending upon the reason for the timeout. Signed-off-by: Ralph Castain <[email protected]> (cherry picked from commit 8924cb5)
1 parent 63b0c0e commit 98c95dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/debugger/indirect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,9 @@ int main(int argc, char **argv)
373373
struct timespec tp = {0, 500000000};
374374
nanosleep(&tp, NULL);
375375
++icount;
376-
if (icount > 20) {
376+
if (icount > 10) {
377377
fprintf(stderr, "Error: Failed to launch by the timeout\n");
378-
goto done;
378+
exit(1);
379379
}
380380
}
381381
if (!ilactive) {

0 commit comments

Comments
 (0)