2008-04-19  Dmitry V. Levin <[EMAIL PROTECTED]>

        * stream.c (decode_poll): Decode timeout for interrupted syscall.
---
 strace/stream.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

--- a/strace/stream.c
+++ b/strace/stream.c
@@ -353,6 +353,13 @@ decode_poll(struct tcb *tcp, long pts)
                 const char *flagstr;
                unsigned int cumlen;
 
+               if (pts && is_restart_error(tcp)) {
+                       strcpy(outstr, "left ");
+                       sprint_timespec(outstr + strlen(outstr), tcp, pts);
+                       tcp->auxstr = outstr;
+                       return RVAL_STR;
+               }
+
                if (syserror(tcp))
                        return 0;
                if (tcp->u_rval == 0) {


-- 
ldv

Attachment: pgpchlwbrQUC3.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to