mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6140] [CLOSED] fix(mtproto): synchronize child process state #6103
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6140
Author: @PathGao
Created: 7/29/2026
Status: ❌ Closed
Base:
main← Head:fix-mtproto-process-race📝 Commits (1)
61f78a3fix(mtproto): synchronize child-process state📊 Changes
1 file changed (+41 additions, -24 deletions)
View changed files
📝
internal/mtproto/process.go(+41 -24)📄 Description
Summary
The MTProto child-process watcher called
Cmd.Waitwhile status and shutdown paths read mutableexec.Cmdfields. Lifecycle state is now snapshotted under a mutex and completion is determined by the process-owned done channel, preventingWait/ProcessStateraces during reload and shutdown.Validation
make verifygo test -race -shuffle=on -count=1 ./internal/mtproto🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.