/[monit]/monit/process/common.c
ViewVC logotype

Diff of /monit/process/common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by chopp, Mon Oct 28 15:22:15 2002 UTC revision 1.4 by chopp, Sat Nov 2 10:47:23 2002 UTC
# Line 79  int read_proc_file(char *buf, int buf_si Line 79  int read_proc_file(char *buf, int buf_si
79    char filename[STRLEN];    char filename[STRLEN];
80    int bytes;    int bytes;
81    
82      ASSERT(buf);
83      ASSERT(name);
84    
85    snprintf(filename, STRLEN, "/proc/%d/%s", pid, name);    snprintf(filename, STRLEN, "/proc/%d/%s", pid, name);
86    
87    fd = open(filename, O_RDONLY);    fd = open(filename, O_RDONLY);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26