Implement stress function for "show errors" output. This forces the
command to yield on every newly dumped instance, which is useful for
debugging.
chunk_appendf(&trash, " \n");
- if (applet_putchk(appctx, &trash) == -1)
+ if (STRESS_RUN1(applet_putchk_stress(appctx, &trash) == -1,
+ applet_putchk(appctx, &trash) == -1)) {
goto cant_send_unlock;
+ }
ctx->ptr = 0;
ctx->ev_id = es->ev_id;
goto cant_send_unlock;
}
- if (applet_putchk(appctx, &trash) == -1)
+ if (STRESS_RUN1(applet_putchk_stress(appctx, &trash) == -1,
+ applet_putchk(appctx, &trash) == -1)) {
goto cant_send_unlock;
+ }
ctx->ptr = newptr;
ctx->bol = newline;