summaryrefslogtreecommitdiff
path: root/src/dhcp-manager
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-03 13:31:15 +0200
committerThomas Haller <thaller@redhat.com>2014-10-10 12:30:22 +0200
commit4bfc163b636008850130d7514684a6464dc0e2bb (patch)
tree2200f77f1721a36c09982d3f2643ebcc00f2834d /src/dhcp-manager
parent5bbd8750c7af199e1bd9ff20b1526848a3131fb5 (diff)
downloadNetworkManager-4bfc163b636008850130d7514684a6464dc0e2bb.tar.gz
dhcp: relax check valid PID for dhcp process
All callers only pass a PID that previously was returned from spawning a process. AFAIS, there is no officially reserved range for lower PIDs that would enforce valid PIDs to be larger then 25. Relax this check. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/dhcp-manager')
-rw-r--r--src/dhcp-manager/nm-dhcp-client.c2
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);