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.
If you could find a better fix than this, please apply it.
--- a/signal.c
+++ b/signal.c
@@ -747,7 +747,7 @@ sys_restart_syscall(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("<... resuming interrupted %s ...>",
- tcp->s_prev_ent
+ tcp->s_prev_ent && strcmp(tcp->s_prev_ent->sys_name,
"unknown")
? tcp->s_prev_ent->sys_name
: "system call"
);
--
ldv
pgpiuleUIZSmY.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 [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
