#include #include #define MALLOCSIZE 4096 #define BLOCK_COUNT 4096 #define FORK_COUNT 1 int main() { unsigned char *p[BLOCK_COUNT] ; unsigned char *pc[BLOCK_COUNT] ; int i,j ; int pid ; fprintf(stderr,"start malloc.....\n") ; for( i=0 ; i0 ){ fprintf(stderr,"Leave fork() parent\n") ; //wait(0) ; continue ; }else{ break ; } } exit(0) ; }