Page MenuHomeFreeBSD

env: Check the status of stdout.
ClosedPublic

Authored by des on Oct 8 2024, 10:07 AM.
Tags
None
Referenced Files
F125153459: D47009.id144469.diff
Mon, Aug 4, 2:51 AM
Unknown Object (File)
Fri, Jul 25, 8:26 PM
Unknown Object (File)
Thu, Jul 24, 12:18 AM
Unknown Object (File)
Tue, Jul 8, 1:23 PM
Unknown Object (File)
Mon, Jul 7, 12:09 AM
Unknown Object (File)
Jul 4 2025, 4:32 AM
Unknown Object (File)
Jul 2 2025, 8:28 PM
Unknown Object (File)
Jun 29 2025, 1:49 PM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59832
Build 56717: arc lint + arc unit

Event Timeline

des requested review of this revision.Oct 8 2024, 10:07 AM
markj added inline comments.
usr.bin/env/tests/env_test.sh
127 ↗(On Diff #144469)

The rest of the file puts opening braces on their own lines.

133 ↗(On Diff #144469)

Does it make sense to sleep for a bit first, to make sure that the other end of the pipe has time to close? Maybe I'm missing something, but this looks like it might fail only sometimes.

usr.bin/env/tests/env_test.sh
127 ↗(On Diff #144469)

Yeah sorry this was copy-pasted from asa.

133 ↗(On Diff #144469)

It works 100% of the time, we use the exact same procedure several other places (including asa which is where I copied this from). Timing doesn't matter because none of the output is consumed and the kernel doesn't buffer it.

This revision is now accepted and ready to land.Oct 8 2024, 1:45 PM
This revision now requires review to proceed.Oct 8 2024, 1:48 PM
des marked 2 inline comments as done.Oct 8 2024, 1:49 PM
This revision is now accepted and ready to land.Oct 8 2024, 4:59 PM
This revision was automatically updated to reflect the committed changes.