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

Diff of /monit/spawn.c

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

revision 1.25 by hauk, Thu Jul 3 02:05:37 2003 UTC revision 1.26 by hauk, Mon Jul 14 19:55:01 2003 UTC
# Line 136  void  spawn(Service_T S, Command_T C) { Line 136  void  spawn(Service_T S, Command_T C) {
136         */         */
137        umask(Run.umask);        umask(Run.umask);
138    
139        redirect_stdfd();        if(! Run.isdaemon) {
140            redirect_stdfd();
141          }
142          
143        if(C->has_gid) {        if(C->has_gid) {
144          if(0 != setgid(C->gid)) {          if(0 != setgid(C->gid)) {
145            log("Failed to change gid to '%d' for '%s'\n",            log("Failed to change gid to '%d' for '%s'\n",

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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