[email protected]
[Top] [All Lists]

PERFORCE change 114786 for review

Subject: PERFORCE change 114786 for review
From: Roman Divacky
Date: Wed, 21 Feb 2007 09:03:49 GMT
http://perforce.freebsd.org/chv.cgi?CH=114786

Change 114786 by [email protected]_witten on 2007/02/21 09:02:58

        In the FUTEX_WAKE_OP the *timeout param is being abused for number
        of wakes up. Change the code accordingly.

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_futex.c#10 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_futex.c#10 
(text+ko) ====

@@ -304,12 +304,10 @@
                if (op_ret > 0) {
                        op_ret = 0;
                        /*
-                        * Linux uses the address of the timespec parameter
-                        * as the number of retries, so any large number will
-                        * be ok.
+                        * Linux abuses the address of the timespec parameter
+                        * as the number of retries.
                         */
                        op_ret += futex_wake(f2, (int) (unsigned long) 
args->timeout, NULL);
-//                     op_ret += futex_wake(f2, 0xffffffff, NULL);
                        ret += op_ret;
                }
                futex_put(f2);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 114786 for review, Roman Divacky <=