server.c
branchsaveflie
changeset 95 13360d8af313
parent 94 330324fc7c20
equal deleted inserted replaced
94:330324fc7c20 95:13360d8af313
   147         s_eth_init();
   147         s_eth_init();
   148 #endif /* linux */
   148 #endif /* linux */
   149 
   149 
   150     if (command_line.s_param.savefile)
   150     if (command_line.s_param.savefile)
   151     {
   151     {
   152         savefile = open(command_line.s_param.savefile, O_CREAT | O_RDWR, 0666);
   152         savefile = open(command_line.s_param.savefile,
       
   153                 O_CREAT | O_TRUNC | O_RDWR, 0666);
   153     }
   154     }
   154 
   155 
   155     child = fork_app(command_line.s_param.command);
   156     child = fork_app(command_line.s_param.command);
   156 
   157 
   157     if (command_line.s_param.nohup)
   158     if (command_line.s_param.nohup)