]> granicus.if.org Git - strace/commitdiff
timerfd, timerfd_create: mark return code with RVAL_FD flag
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 2 Aug 2015 01:37:19 +0000 (01:37 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 3 Aug 2015 09:09:00 +0000 (09:09 +0000)
* time.c (sys_timerfd, sys_timerfd_create): Set RVAL_FD flag
in the return code.

time.c

diff --git a/time.c b/time.c
index aa065f249eb8ca3f2d0c5b3ef3289d975dfa7de0..dfddc45673cbcb809dd110d0cf4ebbee40f67656 100644 (file)
--- a/time.c
+++ b/time.c
@@ -636,7 +636,7 @@ SYS_FUNC(timerfd)
        tprints(", ");
        printitv(tcp, tcp->u_arg[3]);
 
-       return RVAL_DECODED;
+       return RVAL_DECODED | RVAL_FD;
 }
 
 SYS_FUNC(timerfd_create)
@@ -645,7 +645,7 @@ SYS_FUNC(timerfd_create)
        tprints(", ");
        printflags(timerfdflags, tcp->u_arg[1], "TFD_???");
 
-       return RVAL_DECODED;
+       return RVAL_DECODED | RVAL_FD;
 }
 
 SYS_FUNC(timerfd_settime)