Page MenuHomeFreeBSD

vmstat: Complete libxo transition.
ClosedPublic

Authored by yanhaowang on Aug 12 2023, 3:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 13, 12:28 PM
Unknown Object (File)
Thu, Jun 12, 12:25 PM
Unknown Object (File)
Mon, Jun 9, 8:41 AM
Unknown Object (File)
Fri, Jun 6, 8:46 AM
Unknown Object (File)
Thu, Jun 5, 9:17 PM
Unknown Object (File)
Fri, May 30, 5:17 PM
Unknown Object (File)
Tue, May 20, 4:18 AM
Unknown Object (File)
May 17 2025, 11:23 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Return non-zero status on write failuer.

Originally check the xo_finish return value can achive the POSIX standard. Howeve I use (trap "" PIPE; vmstat 2>stderr; echo $? >status | true to check this, it didn't work. I find check xo_finish return value is not enough here. Becuase xo_finish will always return 0, there is already a xo_flush call before xo_finish. So we need check xo_flush return value here.

This revision is now accepted and ready to land.Aug 17 2023, 4:03 PM
This revision was automatically updated to reflect the committed changes.