Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12a9d63

Browse files
authored
fix(agent): start rpty lifecycle after all reads/writes (#15535)
Fixescoder/internal#214#15475 missed that we also write to `rpty` after starting`rpty.lifecycle()`.This PR moves the function call right at the end. Hopefully this shouldaddress the data races before we go resorting to mutexes.
1 parentaca5be5 commit12a9d63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎agent/reconnectingpty/screen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ func newScreen(ctx context.Context, cmd *pty.Cmd, options *Options, logger slog.
7878
}
7979
rpty.id=hex.EncodeToString(buf)
8080

81-
gorpty.lifecycle(ctx,logger)
82-
8381
settings:= []string{
8482
// Disable the startup message that appears for five seconds.
8583
"startup_message off",
@@ -124,6 +122,8 @@ func newScreen(ctx context.Context, cmd *pty.Cmd, options *Options, logger slog.
124122
returnrpty
125123
}
126124

125+
gorpty.lifecycle(ctx,logger)
126+
127127
returnrpty
128128
}
129129

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp