-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A process with mode detachedWithStdio
has a null getter for exitCode
.
#35874
Comments
Started looking into this and it appears that this is working as intended based on the documentation. In particular:
|
Interesting that this behavior is documented. Is this due to a technical limitation? I can't fathom why this would be the preferred behavior. |
Just learned this in a hard (~2 hours searing for an error in my code then reading through process_patch.dart) way. While this is nice to have a doc in Process.start, it would be also helpful to mention this fact in |
Is there any way to know if the command failed or succeeded? |
In response to #35874 The class level doc mentions the restriction that `exitCode` is unavailable for detached processes. Repeat this in the doc for that member since it is the API where it is the most relevant. Change-Id: I14ca7bd32614b1d1c1ae4a7d96d87428215d3dd7 CoreLibraryReviewExempt: Doc change. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/334360 Reviewed-by: Ben Konyi <[email protected]> Commit-Queue: Nate Bosch <[email protected]> Reviewed-by: Brian Quinlan <[email protected]> Auto-Submit: Nate Bosch <[email protected]>
This applications throws when it shouldn't:
The text was updated successfully, but these errors were encountered: