changeset 68 | d549894aa6a9 |
parent 67 | abe63a276a36 |
child 69 | b5912e5f899f |
deleted file mode 100644 --- a/ddos/set_limit.c +++ /dev/null @@ -1,16 +0,0 @@ -/** - * test/demos/ddos/set_limit.c - * Copyright (C) 2008 Markus Broeker - */ - -#include <sys/resource.h> - -int set_limit (int processes) -{ - struct rlimit rlim; - - rlim.rlim_cur = processes; - rlim.rlim_max = processes + 24; - - return setrlimit (RLIMIT_NPROC, &rlim); -}