fix [cgproxy --pid] not return early

This commit is contained in:
springzfx
2020-05-24 18:29:42 +08:00
parent 94b73b5103
commit 0ec9caefe1

View File

@@ -75,6 +75,8 @@ int main(int argc, char *argv[]) {
if (status == 1) error("maybe cgproxy.service not running");
exit(EXIT_FAILURE);
}
// if just attach pid, return here
if (attach_pid) return 0;
string s = join2str(argc - shift, argv + shift, ' ');
return system(s.c_str());