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

Attachment: pgphCvtgUyHyb.pgp
Description: PGP signature

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to