ebook-viewer refuses to die after ctrl+c

Bug #2099777 reported by Sergio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Hi, Calibre developers.

I am writting a technical document in pandoc and seeing the epub result using calibre using the command line ebook-viewer. Thank you very much for that.

But when I compile with pandoc and later execute `ebook-viewer mybook.epub` after seeing the result I won't be able to interrupt the process from the command line which kills my workflow so much that I had to program this nasty script:

```perl
use v5.40.0;

use strict;
use warnings;

die 'You need to send a book' if !scalar @ARGV;
my $pid = fork;
if (!$pid) {
    exec 'ebook-viewer', @ARGV;
}
$SIG{INT} = sub {
    kill 'KILL', $pid;
    $SIG{INT} = 'DEFAULT';
    kill 'INT', $$;
};
waitpid $pid, 0;
```

I think you should give the chance to interrupt with ctrl+c not ignoring completely SIGINT.

Thank you very much again, Sergio.

Sergio (sergiotarxz)
description: updated
Revision history for this message
Sergio (sergiotarxz) wrote :

This would be closed by this pull request https://github.com/kovidgoyal/calibre/pull/2685

Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.