]> granicus.if.org Git - strace/commitdiff
Mark eventfd return code with RVAL_FD flag
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Aug 2015 20:39:48 +0000 (20:39 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Aug 2015 20:46:43 +0000 (20:46 +0000)
* eventfd.c (do_eventfd): Set RVAL_FD flag in the return code.

eventfd.c

index 197a9d6fd6ee1c6ceee646acb7f8cde40c377e5a..ec606cb25294e2df88062bdba09f27680e522112 100644 (file)
--- a/eventfd.c
+++ b/eventfd.c
@@ -9,7 +9,7 @@ do_eventfd(struct tcb *tcp, int flags_arg)
                printflags(open_mode_flags, tcp->u_arg[flags_arg], "O_???");
        }
 
-       return RVAL_DECODED;
+       return RVAL_DECODED | RVAL_FD;
 }
 
 SYS_FUNC(eventfd)