2010/5/12 Luca Bigliardi <[email protected]>:
> --- a/lib/backend.py
> +++ b/lib/backend.py
> @@ -2675,6 +2675,8 @@ def PowercycleNode(hypervisor_type):
>     pid = 0
>   if pid > 0:
>     return "Reboot scheduled in 5 seconds"
> +  # ensure the child is running on ram
> +  utils.Mlockall()
>   time.sleep(5)
>   hyper.PowercycleNode()

I suggest wrapping this with try/except, so that it continues even if
Mlockall failed. What do you think?

Michael

Reply via email to