patch-src_process_sysdep_LINUX_c 529 B

1234567891011
  1. --- monit-5.6.orig/src/process/sysdep_LINUX.c 2012-05-10 22:52:38.000000000 +0200
  2. +++ monit-5.6/src/process/sysdep_LINUX.c 2014-01-04 20:19:48.000000000 +0100
  3. @@ -204,7 +204,7 @@ int initprocesstree_sysdep(ProcessTree_T
  4. ASSERT(reference);
  5. /* Find all processes in the /proc directory */
  6. - if ((rv = glob("/proc/[0-9]*", GLOB_ONLYDIR, NULL, &globbuf))) {
  7. + if ((rv = glob("/proc/[0-9]*", NULL, NULL, &globbuf))) {
  8. LogError("system statistic error -- glob failed: %d (%s)\n", rv, STRERROR);
  9. return FALSE;
  10. }