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
e46ae279
Commit
e46ae279
authored
Oct 14, 2012
by
Alexandre Duret-Lutz
Browse files
ltlcheck: use kill instead of killpg
kill(-x,y) is more portable than killpg(x,y) * src/bin/ltlcheck.cc: Use kill.
parent
a62a0467
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/ltlcheck.cc
View file @
e46ae279
...
...
@@ -269,7 +269,7 @@ sig_handler(int sig)
if
(
--
alarm_on
)
{
// Send SIGTERM to children.
kill
pg
(
child_pid
,
SIGTERM
);
kill
(
-
child_pid
,
SIGTERM
);
// Try again later if it didn't work. (alarm() will be reset
// if it did work and the call to wait() returns)
alarm
(
2
);
...
...
@@ -277,13 +277,13 @@ sig_handler(int sig)
else
{
// After a few gentle tries, really kill that child.
kill
pg
(
child_pid
,
SIGKILL
);
kill
(
-
child_pid
,
SIGKILL
);
}
}
else
{
// forward signal
kill
pg
(
child_pid
,
sig
);
kill
(
-
child_pid
,
sig
);
signal_received
=
sig
;
}
}
...
...
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