contrib/chg/chg.c
changeset 28453 8a7110e351ec
parent 28358 ffd3ac07b1d7
child 28454 8062869860b8
equal deleted inserted replaced
28452:0bb01c8754bf 28453:8a7110e351ec
   209 	const char *hgcmd = gethgcmd();
   209 	const char *hgcmd = gethgcmd();
   210 
   210 
   211 	const char *baseargv[] = {
   211 	const char *baseargv[] = {
   212 		hgcmd,
   212 		hgcmd,
   213 		"serve",
   213 		"serve",
   214 		"--cwd", "/",
       
   215 		"--cmdserver", "chgunix",
   214 		"--cmdserver", "chgunix",
   216 		"--address", opts->sockname,
   215 		"--address", opts->sockname,
   217 		"--daemon-postexec", "none",
   216 		"--daemon-postexec", "chdir:/",
   218 		"--pid-file", opts->pidfile,
   217 		"--pid-file", opts->pidfile,
   219 		"--config", "extensions.chgserver=",
   218 		"--config", "extensions.chgserver=",
   220 	};
   219 	};
   221 	size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]);
   220 	size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]);
   222 	size_t argsize = baseargvsize + opts->argsize + 1;
   221 	size_t argsize = baseargvsize + opts->argsize + 1;