contrib/chg/chg.c
changeset 47024 8fcc0a829f3d
parent 46177 0c320e6032f1
child 50383 cf4d2f31660d
equal deleted inserted replaced
47023:a2bf93ab3014 47024:8fcc0a829f3d
   238 static void execcmdserver(const struct cmdserveropts *opts)
   238 static void execcmdserver(const struct cmdserveropts *opts)
   239 {
   239 {
   240 	const char *hgcmd = gethgcmd();
   240 	const char *hgcmd = gethgcmd();
   241 
   241 
   242 	const char *baseargv[] = {
   242 	const char *baseargv[] = {
   243 	    hgcmd,
   243 	    hgcmd,     "serve",     "--no-profile",     "--cmdserver",
   244 	    "serve",
   244 	    "chgunix", "--address", opts->initsockname, "--daemon-postexec",
   245 	    "--cmdserver",
       
   246 	    "chgunix",
       
   247 	    "--address",
       
   248 	    opts->initsockname,
       
   249 	    "--daemon-postexec",
       
   250 	    "chdir:/",
   245 	    "chdir:/",
   251 	};
   246 	};
   252 	size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]);
   247 	size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]);
   253 	size_t argsize = baseargvsize + opts->argsize + 1;
   248 	size_t argsize = baseargvsize + opts->argsize + 1;
   254 
   249