src/server/daemon/main.c

changeset 79
f48cea237ec3
parent 74
5bc6d078fb2c
child 82
740cfd9dd443
equal deleted inserted replaced
78:3578977d29a3 79:f48cea237ec3
95 95
96 int main(int argc, char **argv) { 96 int main(int argc, char **argv) {
97 //test(); 97 //test();
98 98
99 /* if the -c parameter is specified, we don't create a daemon */ 99 /* if the -c parameter is specified, we don't create a daemon */
100 int d = 1; 100 int d = 0;
101 for(int i=0;i<argc;i++) { 101 for(int i=0;i<argc;i++) {
102 char *p = argv[i]; 102 char *p = argv[i];
103 if(p[0] == '-' && p[1] == 'c') { 103 if(p[0] == '-' && p[1] == 'c') {
104 d = 0; 104 d = 0;
105 break; 105 break;

mercurial