From 541ffabd23c1b73046fa4d734b6a32fddd3d4546 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 3 Oct 2014 13:31:15 +0200 Subject: 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 not officially reserved range that would enforce valid PIDs to be larger then 25. Relax this check. Signed-off-by: Thomas Haller --- src/dhcp-manager/nm-dhcp-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1