void-linux / runit

The init system for Void Linux.
https://voidlinux.org
162 stars 22 forks source link

wait.h: fix wait_exitcode macro. #17

Open ericonr opened 3 years ago

ericonr commented 3 years ago

Apparently a mistake from copy pasting. This was hiding the actual exit codes (usually became only 0), so much of the logic around detecting return codes from children was wrong. This includes runit and stage 2: runsvdir exiting due to a signal or crash should have prompted runit to try and start stage 2 anew; instead, it was just proceeding with the poweroff sequence.