In windows, the program by cargo run called don't have JOB_OBJECT_LIMIT_BREAKAWAY_OK flag
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 15.5k
- Forks
- 3k
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 51
Description
My app needs to create a child process with CREATE_BREAKAWAY_FROM_JOB flag, but the program by cargo run called don't have JOB_OBJECT_LIMIT_BREAKAWAY_OK flag, so I got deny error.
see https://msdn.microsoft.com/en-US/library/ms684863
I have to change cargo run to cargo build && .\target\debug\app.exe to fix this.
Is it a feature, or a bug?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Windows behavior with cargo run and compare it with cargo build && .\target\debug\app.exe; consult the linked MSDN documentation for the required job-object flag. Trace the cargo run process-launch entry point and verify that a successful fix allows the child process to use CREATE_BREAKAWAY_FROM_JOB without the deny error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100