mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 04:20:30 +01:00
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>
This commit is contained in:
parent
5bbd8750c7
commit
4bfc163b63
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue