Skip to content

Commit

Permalink
also handle USR2 signal in capture-movie
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Dec 6, 2023
1 parent c01f145 commit f7706cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gphoto2/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,12 @@ action_camera_capture_movie (GPParams *p, const char *arg)

captured_frames++;

if (end_next) {
printf(_("Movie capture: SIGUSR2 signal received, stopping capture!\n"));
end_next = 0;
break;
}

if (glob_cancel) {
fprintf(stderr, _("Ctrl-C pressed ... Exiting.\n"));
break;
Expand Down

0 comments on commit f7706cd

Please sign in to comment.