Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
20060943
Commit
20060943
authored
May 07, 2020
by
Mathieu Giraud
Browse files
core/windowExtractor.cpp: handles SIGINT during first pass (window detection)
see
#4286
parent
b05aa8de
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/core/windowExtractor.cpp
View file @
20060943
...
...
@@ -27,8 +27,17 @@ WindowsStorage *WindowExtractor::extract(OnlineBioReader *reads,
unsigned
long
long
int
bp_total
=
0
;
global_interrupted
=
false
;
signal
(
SIGINT
,
sigintHandler
);
while
(
reads
->
hasNext
())
{
if
(
global_interrupted
)
{
cout
<<
WARNING_STRING
<<
"Interrupted after processing "
<<
nb_reads
<<
" reads"
<<
endl
;
break
;
}
try
{
reads
->
next
();
}
...
...
@@ -119,6 +128,7 @@ WindowsStorage *WindowExtractor::extract(OnlineBioReader *reads,
cout
.
flush
()
;
}
}
signal
(
SIGINT
,
SIG_DFL
);
cout
<<
endl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment