mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 02:16:36 +02:00
handle race condition while setting raw mode in windows (#2509)
This commit is contained in:
parent
9241a29336
commit
42e77e2a69
5 changed files with 38 additions and 15 deletions
|
@ -6,8 +6,9 @@ import (
|
|||
"syscall"
|
||||
)
|
||||
|
||||
func handleCharCtrlZ(fd int, termios *Termios) (string, error) {
|
||||
if err := UnsetRawMode(fd, termios); err != nil {
|
||||
func handleCharCtrlZ(fd int, termios any) (string, error) {
|
||||
t := termios.(*Termios)
|
||||
if err := UnsetRawMode(fd, t); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue