nerves-project / nerves_runtime

Small, general initialization and utilities for Nerves devices
Apache License 2.0
57 stars 23 forks source link

Add an infinite sleep when calling reboot #313

Closed oestrich closed 11 months ago

oestrich commented 11 months ago

:init.stop() returns and it's not supposed to, this might be in newer OTPs only.

fhunleth commented 11 months ago

Thanks! It looks like poweroff needs this too to be consistent with the specs. Now that you pointed this out, I think that :init.stop/0 may always have returned and it was an oversight to not add the sleep when guarded poweroffs were added.