[haiku-commits] Re: haiku: hrev52665 - src/system/runtime_loader

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 20 Dec 2018 14:02:29 -0500

On Thu, Dec 20, 2018 at 4:13 AM Jérôme Duval <jerome.duval@xxxxxxxxx> wrote:

status should be checked against B_OK.

B_OK == 0; and I've seen this pattern used in the kernel VFS code too
so I thought it was OK.

Why not just set returnstatus?

As looncraz said, we want to return any actual error, but we also want
to call both after_fork functions so that neither is left in an
inconsistent state just because the first failed to properly
initialize.

-waddlesplash

Other related posts: