src/server/daemon/main.c

changeset 82
740cfd9dd443
parent 79
f48cea237ec3
child 86
49bb6c8ceb2b
equal deleted inserted replaced
81:d25825f37967 82:740cfd9dd443
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 = 0; 100 int d = 1;
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