while(f>oldlimit){intdecr_step=16;limit.rlim_cur=f;limit.rlim_max=f;if(setrlimit(RLIMIT_NOFILE,&limit)!=-1)break;setrlimit_error=errno;/*Wefailedtosetfilelimitto'f'.Trywitha*smallerlimitdecrementingbyafewFDsperiteration.*/if(f
linux 資源限制,軟限制可以超出硬限制么?
慕勒3428872
2019-04-08 11:19:00