Y
Hacker News
new
|
ask
|
show
|
jobs
by
yholio
1675 days ago
{return 1;} is clearly a faulty implementation, it's entirely possible that the computer is already turned off by the time the function is executed using power stored in the decoupling capacitors of the CPU.
1 comments
azundo
1675 days ago
Since the behavior is undefined when the computer is off this implementation seems correct in your hypothetical as well.
link