Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
NetworkManager
NetworkManager
Commits
4a7c77ac
Commit
4a7c77ac
authored
Oct 07, 2010
by
Dan Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsmasq: actually kill stale dnsmasq process
Interpret the return value of kill(2) correctly...
parent
35b1ed90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/dnsmasq-manager/nm-dnsmasq-manager.c
src/dnsmasq-manager/nm-dnsmasq-manager.c
+1
-1
No files found.
src/dnsmasq-manager/nm-dnsmasq-manager.c
View file @
4a7c77ac
...
...
@@ -385,7 +385,7 @@ kill_existing_for_iface (const char *iface, const char *pidfile)
goto
out
;
if
(
strstr
(
cmdline_contents
,
"bin/dnsmasq"
))
{
if
(
kill
(
pid
,
0
))
{
if
(
kill
(
pid
,
0
)
==
0
)
{
nm_log_dbg
(
LOGD_SHARING
,
"Killing stale dnsmasq process %ld"
,
pid
);
kill
(
pid
,
SIGKILL
);
}
...
...
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