diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-04 17:06:28 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-04 17:06:28 +0000 |
| commit | 5ed44b2a0448d2ac2e76ce68cb342665257a0126 (patch) | |
| tree | 6d5f3bb1837d6257d1628ed31b68ce8fd5a7c29f /src/conn-tools/proxy-server.c | |
| parent | bffe71501a9be468cb0e31d8e607bd02ace3cc81 (diff) | |
| download | s6-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.c | 8 |
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() ; |
