Skip to content

Commit

Permalink
handle: After set python SIGINT handler back, check if librepo was in…
Browse files Browse the repository at this point in the history
…terrupted by CTRL+C. (RhBug: 977803)
  • Loading branch information
Tojaj committed Jul 3, 2013
1 parent 2e54ce5 commit 9b535e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions librepo/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,8 @@ lr_handle_perform(lr_Handle handle, lr_Result result)
DPRINTF("%s: Restoring an old SIGINT handler\n", __func__);
if (sigaction(SIGINT, &old_sigact, NULL) == -1)
return LRE_SIGACTION;
if (lr_interrupt)
return LRE_INTERRUPTED;
}

return rc;
Expand Down

0 comments on commit 9b535e8

Please sign in to comment.