Skip to content

Commit

Permalink
don't exit on non-DB child processes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsauthof committed Jul 18, 2013
1 parent 11f157f commit 2be79e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
10 changes: 6 additions & 4 deletions ocitrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,10 +1565,12 @@ void ocitrace_setup(bool trace_intercept, bool trace_gory, bool trace_sql,
r += setup_OCISessionPoolDestroy();
r += setup_OCISessionRelease();

if (r) {
fprintf(stderr, "Exiting because of previous dlsym() errors.\n");
exit(23);
}
// do not exit because a non-oracle-linked fork'ed child also
// triggers this 'error'
//if (r) {
// fprintf(stderr, "Exiting because of previous dlsym() errors.\n");
// exit(23);
//}
int ret = stats_init(&stats, 0, FN_SIZE);
IFTRUEEXIT(ret, 0, -1);
}
Expand Down
11 changes: 7 additions & 4 deletions wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1704,10 +1704,13 @@ static void setup_fns()
r += setup__exit();
r += setup__Exit();
//r += setup_exit();
if (r) {
fprintf(stderr, "Exiting because of previous dlsym() errors.\n");
wrap_exit(23);
}

// do not exit because a non-oracle-linked fork'ed child also
// triggers this 'error'
//if (r) {
// fprintf(stderr, "Exiting because of previous dlsym() errors.\n");
// wrap_exit(23);
//}
}

// libclntsh.so
Expand Down

0 comments on commit 2be79e9

Please sign in to comment.