Page MenuHomePhabricator

Return STDIN, STDOUT, and STDERR file descriptors from parent process
ClosedPublic

Authored by epriestley on May 5 2022, 5:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 3:44 AM
Unknown Object (File)
Fri, Nov 15, 2:54 AM
Unknown Object (File)
Thu, Nov 14, 4:03 AM
Unknown Object (File)
Wed, Nov 13, 5:37 AM
Unknown Object (File)
Mon, Nov 11, 7:54 AM
Unknown Object (File)
Thu, Nov 7, 10:56 AM
Unknown Object (File)
Thu, Nov 7, 9:06 AM
Unknown Object (File)
Thu, Nov 7, 3:14 AM
Subscribers
None

Details

Summary

Ref T13675. When a process daemonizes, it needs to close these actual file descriptors, so the calling context must provide them.

Elsewhere, modify the embedded "arc" to provide them. Then use them in place of reopening the streams.

Test Plan

Ran locally with embedded "arc", will deploy for production hangs.

Diff Detail

Repository
rARC Arcanist
Branch
stdio1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25699
Build 35527: arc lint + arc unit

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 5 2022, 5:27 PM
This revision was automatically updated to reflect the committed changes.