futex: print futex(FUTEX_FD) return value as FD

Since it used to be it.

* futex.c (SYS_FUNC(futex)) <case FUTEX_FD>: Return
RVAL_DECODED|RVAL_FD.
This commit is contained in:
Eugene Syromyatnikov 2018-09-24 07:35:18 +02:00
parent 342801a9dc
commit 6d4b688d38

View File

@ -160,6 +160,8 @@ SYS_FUNC(futex)
printaddrpival(tcp, uaddr2);
break;
case FUTEX_FD:
tprintf(", %u", val);
return RVAL_DECODED | RVAL_FD;
case FUTEX_WAKE:
tprintf(", %u", val);
break;