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)
Sat, May 4, 11:12 AM
Unknown Object (File)
Fri, May 3, 6:44 AM
Unknown Object (File)
Thu, May 2, 11:53 AM
Unknown Object (File)
Sat, Apr 27, 5:36 PM
Unknown Object (File)
Thu, Apr 25, 1:17 AM
Unknown Object (File)
Wed, Apr 24, 8:25 AM
Unknown Object (File)
Sat, Apr 20, 5:56 PM
Unknown Object (File)
Sat, Apr 20, 5:07 PM
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.