aboutsummaryrefslogtreecommitdiffstats
path: root/src/conn-tools/proxy-server.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-06-04 17:06:28 +0000
committerLaurent Bercot <ska@appnovation.com>2025-06-04 17:06:28 +0000
commit5ed44b2a0448d2ac2e76ce68cb342665257a0126 (patch)
tree6d5f3bb1837d6257d1628ed31b68ce8fd5a7c29f /src/conn-tools/proxy-server.c
parentbffe71501a9be468cb0e31d8e607bd02ace3cc81 (diff)
downloads6-networking-5ed44b2a0448d2ac2e76ce68cb342665257a0126.tar.gz
Delay addition of pid in name until after trivial permanent errors
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/conn-tools/proxy-server.c')
-rw-r--r--src/conn-tools/proxy-server.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/conn-tools/proxy-server.c b/src/conn-tools/proxy-server.c
index 5a578f8..e5c5820 100644
--- a/src/conn-tools/proxy-server.c
+++ b/src/conn-tools/proxy-server.c
@@ -329,9 +329,7 @@ int main (int argc, char const *const *argv)
} ;
uint64_t golb = 0 ;
- char prog_storage[PROG_pid_len(NAME)] ;
- PROG_pid_fill(prog_storage, NAME) ;
- PROG = prog_storage ;
+ PROG = NAME ;
{
char const *gola[MAIN_GOLA_N] = { 0 } ;
@@ -350,6 +348,10 @@ int main (int argc, char const *const *argv)
tain_add_g(&deadline, &tto) ;
}
+ char prog_storage[PROG_pid_len(NAME)] ;
+ PROG_pid_fill(prog_storage, NAME) ;
+ PROG = prog_storage ;
+
if ((golb & (1 << MAIN_GOLB_V1 | 1 << MAIN_GOLB_V2)) == 0) golb |= 1 << MAIN_GOLB_V2 ;
if ((golb & (1 << MAIN_GOLB_V1 | 1 << MAIN_GOLB_V2)) == 1 << MAIN_GOLB_V2) v2() ;
else if ((golb & (1 << MAIN_GOLB_V1 | 1 << MAIN_GOLB_V2)) == 1 << MAIN_GOLB_V1) v1() ;