diff options
author | Thomas Haller <thaller@redhat.com> | 2014-10-03 13:31:15 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-10-03 14:56:44 +0200 |
commit | 541ffabd23c1b73046fa4d734b6a32fddd3d4546 (patch) | |
tree | 95103ec7e01f289e2a108dc0522384247661f04c | |
parent | 74a3f6110c332be58be539b72b51b6b68eb79949 (diff) | |
download | NetworkManager-th/bgo737731-kill-process.tar.gz |
dhcp: relax check valid PID for dhcp processth/bgo737731-kill-process
All callers only pass a PID that previously was returned from
spawning a process. AFAIS, there is not officially reserved range
that would enforce valid PIDs to be larger then 25.
Relax this check.
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | src/dhcp-manager/nm-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c index c808513d90..085f7f3655 100644 --- a/src/dhcp-manager/nm-dhcp-client.c +++ b/src/dhcp-manager/nm-dhcp-client.c @@ -216,7 +216,7 @@ nm_dhcp_client_stop_pid (pid_t pid, const char *iface) { char *name = iface ? g_strdup_printf ("dhcp-client-%s", iface) : NULL; - g_return_if_fail (pid > 25); + g_return_if_fail (pid > 1); nm_utils_kill_child_sync (pid, SIGTERM, LOGD_DHCP, name ? name : "dhcp-client", NULL, 1000 / 2, 1000 / 20); |