[SCM] strace branch, master, updated. v4.10-25-g8497b62

Dmitry V. Levin ldv at altlinux.org
Tue Apr 7 23:09:22 UTC 2015


On Tue, Apr 07, 2015 at 12:48:45PM +0200, Denys Vlasenko wrote:
> On 04/07/2015 02:08 AM, Dmitry V. Levin wrote:
> > On Tue, Mar 24, 2015 at 05:13:13AM +0300, Dmitry V. Levin wrote:
> >> It also doesn't work on alpha and s390/s390x:
> >>
> >> $ sleep 2 & sleep 1; ./strace -erestart_syscall -p $!
> >> [1] 12345
> >> Process 12345 attached
> >> restart_syscall(<... resuming interrupted unknown ...>) = 0
> >> +++ exited with 0 +++
> >> [1]+  Done                    sleep 2
> > 
> > I think this "resuming interrupted unknown" message is confusing.
> 
> Yes, looks wrong. Can't reproduce it here, tho:
> 
> $ sleep 5 & sleep 4; ./strace -erestart_syscall -p $!
> Process 26088 attached
> [ Process PID=26088 runs in 32 bit mode. ]
> restart_syscall(<... resuming interrupted nanosleep ...>) = 0
> +++ exited with 0 +++

This happens only on architectures that use the same register
both for syscall number and syscall return code.

I've pushed tests/restart_syscall.test to test this.

> > If you could find a better fix than this, please apply it.
> 
> I'm going to apply this:

Thanks.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20150408/db45c1d8/attachment.bin>


More information about the Strace-devel mailing list