Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
8e900294
Commit
8e900294
authored
Oct 14, 2012
by
Alexandre Duret-Lutz
Browse files
ltlcheck: do not ignore ^C during sanity checks
* src/bin/ltlcheck.cc (sig_handler): Exit when receiving the signal.
parent
7022853d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/ltlcheck.cc
View file @
8e900294
...
...
@@ -268,7 +268,6 @@ static volatile bool timed_out = false;
#if ENABLE_TIMEOUT
static
volatile
int
alarm_on
=
0
;
static
int
child_pid
=
-
1
;
static
volatile
int
signal_received
=
0
;
static
void
sig_handler
(
int
sig
)
...
...
@@ -297,7 +296,8 @@ sig_handler(int sig)
{
// forward signal
kill
(
-
child_pid
,
sig
);
signal_received
=
sig
;
// and die verbosely
error
(
2
,
0
,
"received signal %d"
,
sig
);
}
}
...
...
@@ -346,8 +346,6 @@ exec_with_timeout(const char* cmd)
error
(
2
,
errno
,
"error during wait()"
);
alarm
(
0
);
if
(
signal_received
)
error
(
2
,
0
,
"received signal %d"
,
signal_received
);
}
return
status
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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