[SIGAR-127] use KERN_ARGMAX for KERN_PROCARGS2 buffer size

This commit is contained in:
Doug MacEachern committed 2009-02-06 13:44:35 -08:00
1 parent 4867aeb235
commit 1ccf48ca19
2 files changed
+48 -15

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ struct sigar_t {
sigar_pid_t last_pid;
bsd_pinfo_t *pinfo;
int lcpu;
size_t argmax;
#ifdef DARWIN
mach_port_t mach_port;
# ifdef DARWIN_HAS_LIBPROC_H