From f5ea58da028d0a484d4b76bedd821f48fc9fa90f Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 15 Oct 2010 14:29:29 +0000 Subject: [PATCH] Ticket #927. Increase timeout to gice mpd the time needed to exit gracefully. --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index add42dcf13..89915bdcdb 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -844,7 +844,7 @@ function interface_bring_down($interface = "wan", $destroy = false) { if ($realif == $ppp['if']) { if (file_exists("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid")) { killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid"); - sleep(2); + sleep(5); } unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf"); if (isset($ppp['ondemand']) && !$destroy)