/[pkg-mixmaster]/trunk/Mix/Src/main.c
ViewVC logotype

Diff of /trunk/Mix/Src/main.c

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

revision 332 by weaselp, Wed Oct 9 20:53:32 2002 UTC revision 344 by weaselp, Thu Oct 10 10:06:05 2002 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Command-line based frontend     Command-line based frontend
9     $Id: main.c,v 1.24 2002/10/09 20:53:29 weaselp Exp $ */     $Id: main.c,v 1.25 2002/10/10 10:06:05 weaselp Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 610  end: Line 610  end:
610            exit(1);            exit(1);
611          };          };
612        };        };
       if (write_pidfile(PIDFILE)) {  
         fprintf(stderr, "Aborting.\n");  
         exit(1);  
       }  
613        freopen ("/dev/null", "r", stdin);        freopen ("/dev/null", "r", stdin);
614        freopen ("/dev/null", "w", stdout);        freopen ("/dev/null", "w", stdout);
615        freopen ("/dev/null", "w", stderr);        freopen ("/dev/null", "w", stderr);
616      }      }
617        if (write_pidfile(PIDFILE)) {
618          fprintf(stderr, "Aborting.\n");
619          exit(1);
620        }
621  #endif /* UNIX */  #endif /* UNIX */
622      mix_daemon();      mix_daemon();
623  #ifdef UNIX  #ifdef UNIX

Legend:
Removed from v.332  
changed lines
  Added in v.344

  ViewVC Help
Powered by ViewVC 1.1.5