summaryrefslogtreecommitdiff
path: root/backend/sp15c.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/sp15c.c')
-rw-r--r--backend/sp15c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/sp15c.c b/backend/sp15c.c
index 3937a30..0cabed8 100644
--- a/backend/sp15c.c
+++ b/backend/sp15c.c
@@ -1762,7 +1762,7 @@ do_cancel (struct sp15c *scanner)
do_eof (scanner); /* close pipe and reposition scanner */
- if (scanner->reader_pid != -1)
+ if (sanei_thread_is_valid (scanner->reader_pid))
{
int exit_status;
DBG (10, "do_cancel: kill reader_process\n");