diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 8d0be7dd9..756ce780e 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -938,7 +938,7 @@ function system_halt($sync = false) if (!$sync) { mwexec_bg($cmd); } else { - mwexec($cmd); + passthru($cmd); } } @@ -949,7 +949,7 @@ function system_reboot($sync = false) if (!$sync) { mwexec_bg($cmd); } else { - mwexec($cmd); + passthru($cmd); } }