Changeset 4122
- Timestamp:
- Dec 14, 2009, 4:33:53 AM (11 years ago)
- Location:
- zzuf/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/myfork.c
r4116 r4122 38 38 #include <string.h> 39 39 #include <fcntl.h> /* for O_BINARY */ 40 #if defined HAVE_SYS_RESOURCE_H 41 # include <sys/resource.h> /* for RLIMIT_AS */ 42 #endif 40 43 41 44 #include "common.h" … … 47 50 #include "md5.h" 48 51 #include "timer.h" 52 53 #if defined RLIMIT_AS 54 # define ZZUF_RLIMIT_MEM RLIMIT_AS 55 #elif defined RLIMIT_VMEM 56 # define ZZUF_RLIMIT_MEM RLIMIT_VMEM 57 #elif defined RLIMIT_DATA 58 # define ZZUF_RLIMIT_MEM RLIMIT_DATA 59 #else 60 # undef ZZUF_RLIMIT_MEM 61 #endif 62 63 #if defined RLIMIT_CPU 64 # define ZZUF_RLIMIT_CPU RLIMIT_CPU 65 #else 66 # undef ZZUF_RLIMIT_CPU 67 #endif 49 68 50 69 static int run_process(struct opts *, int[][2]); -
zzuf/trunk/src/zzuf.c
r4115 r4122 55 55 #endif 56 56 #if defined HAVE_SYS_RESOURCE_H 57 # include <sys/resource.h> 57 # include <sys/resource.h> /* for RLIMIT_AS */ 58 58 #endif 59 59
Note: See TracChangeset
for help on using the changeset viewer.