From 0ec9caefe11fa1602c811ede011825b1f46515fe Mon Sep 17 00:00:00 2001 From: springzfx Date: Sun, 24 May 2020 18:29:42 +0800 Subject: [PATCH] fix [cgproxy --pid] not return early --- src/cgproxy.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cgproxy.hpp b/src/cgproxy.hpp index da185d8..d44769c 100644 --- a/src/cgproxy.hpp +++ b/src/cgproxy.hpp @@ -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());