We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4ce876 commit 16809afCopy full SHA for 16809af
tools/testing/selftests/bpf/test_progs.c
@@ -975,12 +975,12 @@ void crash_handler(int signum)
975
976
sz = backtrace(bt, ARRAY_SIZE(bt));
977
978
+ if (env.stdout)
979
+ stdio_restore();
980
if (env.test) {
981
env.test_state->error_cnt++;
982
dump_test_log(env.test, env.test_state, true, false);
983
}
- if (env.stdout)
- stdio_restore();
984
if (env.worker_id != -1)
985
fprintf(stderr, "[%d]: ", env.worker_id);
986
fprintf(stderr, "Caught signal #%d!\nStack trace:\n", signum);
0 commit comments