/[monit]/monit/files.c
ViewVC logotype

Diff of /monit/files.c

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

revision 1.30 by hauk, Sun Mar 2 14:15:22 2003 UTC revision 1.31 by hauk, Fri Mar 7 17:16:27 2003 UTC
# Line 195  char *find_rcfile() { Line 195  char *find_rcfile() {
195    
196  /**  /**
197   * Create a program's pidfile - Such a file is created when in daemon   * Create a program's pidfile - Such a file is created when in daemon
198   * mode. The file is created with mask = PIDMASK (usually 644).     * mode. The file is created with mask = MYPIDMASK (usually 644).  
199   * @param pidfile The name of the pidfile to create   * @param pidfile The name of the pidfile to create
200   * @return TRUE if the file was created, otherwise FALSE.   * @return TRUE if the file was created, otherwise FALSE.
201   */   */
# Line 205  int create_pidfile(char *pidfile) { Line 205  int create_pidfile(char *pidfile) {
205    
206    ASSERT(pidfile);    ASSERT(pidfile);
207        
208    umask(PIDMASK);    umask(MYPIDMASK);
209        
210    if ((F= fopen(pidfile,"w")) == (FILE *)NULL) {    if ((F= fopen(pidfile,"w")) == (FILE *)NULL) {
211            

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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