test7-pre3 looping in flush_old_exec()

From: Mike Galbraith (mikeg@weiden.de)
Date: Sun Aug 13 2000 - 03:53:27 EST


Hi Al,

Upon boot, my box gets stuck in flush_old_exec(). The below may
be dead wrong.. but does make box happy enough to boot and run.

        -Mike

--- linux-2.4.0-test7-pre3.ikd.mike/fs/exec.c.org Sun Aug 13 09:09:28 2000
+++ linux-2.4.0-test7-pre3.ikd.mike/fs/exec.c Sun Aug 13 09:13:07 2000
@@ -481,8 +481,10 @@
                 if (i >= files->max_fds || i >= files->max_fdset)
                         break;
                 set = files->close_on_exec->fds_bits[j];
- if (!set)
+ if (!set) {
+ j++;
                         continue;
+ }
                 files->close_on_exec->fds_bits[j] = 0;
                 j++;
                 write_unlock(&files->file_lock);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:29 EST