Skip to content

Commit

Permalink
Don't use fprintf() in do_cancel()
Browse files Browse the repository at this point in the history
fprintf() is not re-entrant
  • Loading branch information
mounaiban committed Aug 23, 2022
1 parent 31e9440 commit 7f82890
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rastertocapt.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ static void send_page_data(struct printer_state_s *state, const struct cached_pa
static void do_cancel(int s)
{
(void) s;
fprintf(stderr, "DEBUG: CAPT: begin job cancellation cleanup\n");

if (ops)
ops->cancel_cleanup(state);
Expand All @@ -228,7 +227,6 @@ static void do_cancel(int s)
if (state)
free_state();

fprintf(stderr, "DEBUG: CAPT: job cancellation cleanup complete\n");
exit(1);
}

Expand Down

0 comments on commit 7f82890

Please sign in to comment.