ddos/set_limit.c
changeset 10 f19f44e2e863
parent 9 c3fecc82ade6
equal deleted inserted replaced
9:c3fecc82ade6 10:f19f44e2e863
     9 {
     9 {
    10     struct rlimit rlim;
    10     struct rlimit rlim;
    11 
    11 
    12     rlim.rlim_cur = processes;
    12     rlim.rlim_cur = processes;
    13     rlim.rlim_max = processes + 24;
    13     rlim.rlim_max = processes + 24;
       
    14 
    14     return setrlimit (RLIMIT_NPROC, &rlim);
    15     return setrlimit (RLIMIT_NPROC, &rlim);
    15 }
    16 }