mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix log message.
PiperOrigin-RevId: 415354997
This commit is contained in:
committed by
gVisor bot
parent
f7a522a16b
commit
46d3404d8e
@@ -199,10 +199,10 @@ func (app *runApp) execute(t *Task) taskRunState {
|
||||
if t.haveSyscallReturn {
|
||||
if sre, ok := linuxerr.SyscallRestartErrorFromReturn(t.Arch().Return()); ok {
|
||||
if sre == linuxerr.ERESTART_RESTARTBLOCK {
|
||||
t.Debugf("Restarting syscall %d with restart block after errno %d: not interrupted by handled signal", t.Arch().SyscallNo(), sre)
|
||||
t.Debugf("Restarting syscall %d with restart block: not interrupted by handled signal", t.Arch().SyscallNo())
|
||||
t.Arch().RestartSyscallWithRestartBlock()
|
||||
} else {
|
||||
t.Debugf("Restarting syscall %d after errno %d: not interrupted by handled signal", t.Arch().SyscallNo(), sre)
|
||||
t.Debugf("Restarting syscall %d: not interrupted by handled signal", t.Arch().SyscallNo())
|
||||
t.Arch().RestartSyscall()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ func (t *Task) deliverSignal(info *linux.SignalInfo, act linux.SigAction) taskRu
|
||||
t.Debugf("Not restarting syscall %d after errno %d: interrupted by signal %d", t.Arch().SyscallNo(), sre, info.Signo)
|
||||
t.Arch().SetReturn(uintptr(-ExtractErrno(linuxerr.EINTR, -1)))
|
||||
default:
|
||||
t.Debugf("Restarting syscall %d after errno %d: interrupted by signal %d", t.Arch().SyscallNo(), sre, info.Signo)
|
||||
t.Debugf("Restarting syscall %d: interrupted by signal %d", t.Arch().SyscallNo(), info.Signo)
|
||||
t.Arch().RestartSyscall()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user