[pve-devel] [PATCH ha-manager 03/10] use POSIX::_exit

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Dec 21 16:44:40 CET 2016


we do not want to use the parents perl code exit path here but exit
directly

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/HA/Sim/RTHardware.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/HA/Sim/RTHardware.pm b/src/PVE/HA/Sim/RTHardware.pm
index 2076c0a..5496fb1 100644
--- a/src/PVE/HA/Sim/RTHardware.pm
+++ b/src/PVE/HA/Sim/RTHardware.pm
@@ -156,7 +156,7 @@ sub fork_daemon {
 	    }
 	}
 
-	exit(-1);
+	POSIX::_exit(-1);
     }
 
     # parent
-- 
2.1.4





More information about the pve-devel mailing list