sched_set_affinity patch

Ian Wienand ianw at gelato.unsw.edu.au
Sun May 11 23:34:07 UTC 2003


make sched_set_affinity output correctly.

-i
ianw at gelato.unsw.edu.au
http://www.gelato.unsw.edu.au

--- strace-4.4.96/process.c     2003-03-31 11:03:33.000000000 +1000
+++ strace-4.4.96-fixed/process.c       2003-05-12 16:23:41.000000000 +1000
@@ -2643,7 +2643,7 @@
 {
     int first = 1;
     tprintf(" {");
-    while (len > sizeof (unsigned long)) {
+    while (len >= sizeof (unsigned long)) {
        tprintf("%s %lx", first ? "" : ",", *list++);
        first = 0;
        len -= sizeof (unsigned long);




More information about the Strace-devel mailing list