DragonFly BSD
DragonFly bugs List (threaded) for 2011-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue2019] panic: file desc: malloc limit exceeded


From: "Venkatesh Srinivas \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 06 Mar 2011 13:22:14 +0000

Venkatesh Srinivas <vsrinivas@dragonflybsd.org> added the comment:

A sample program to exhaust this limit; bump the fork parameter as you see fit.

main() {
        int i, j;
        dup2(0, 3500);
        for (i = 0 ; i < 1280; i++) {
                j = fork();
                if (j == 0)
                        pause();
        }
        pause();
}

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2019>
_____________________________________________________




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]