Fix debug message.

Prior to this change, it read as:

```
Not restarting syscall 61 after
errno &{512 %!d(string=to be restarted if SA_RESTART is set)}:
interrupted by signal 17
```

PiperOrigin-RevId: 580280436
This commit is contained in:
Etienne Perot
2023-11-07 13:25:49 -08:00
committed by gVisor bot
parent 999c708319
commit 9115b8d57c
+1 -1
View File
@@ -173,7 +173,7 @@ func (t *Task) deliverSignal(info *linux.SignalInfo, act linux.SigAction) taskRu
case sre == linuxerr.ERESTART_RESTARTBLOCK:
fallthrough
case (sre == linuxerr.ERESTARTSYS && act.Flags&linux.SA_RESTART == 0):
t.Debugf("Not restarting syscall %d after errno %d: interrupted by signal %d", t.Arch().SyscallNo(), sre, info.Signo)
t.Debugf("Not restarting syscall %d after error %v: interrupted by signal %d", t.Arch().SyscallNo(), sre, info.Signo)
t.Arch().SetReturn(uintptr(-ExtractErrno(linuxerr.EINTR, -1)))
default:
t.Debugf("Restarting syscall %d: interrupted by signal %d", t.Arch().SyscallNo(), info.Signo)