diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-02-09 11:25:57 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-02-09 11:25:57 +0000 |
| commit | d4ef901e6eed5946d414727cad3f4d7446794c88 (patch) | |
| tree | e4e183139a3efbbb51ca798594d6a8fe652635a8 /src/qmail-remote/qmail-remote.c | |
| parent | ed02e1a94b532911e1d20364e1f396cefd5a0f7a (diff) | |
| download | smtpd-starttls-proxy-d4ef901e6eed5946d414727cad3f4d7446794c88.tar.gz | |
Add some debug instructions
Diffstat (limited to 'src/qmail-remote/qmail-remote.c')
| -rw-r--r-- | src/qmail-remote/qmail-remote.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qmail-remote/qmail-remote.c b/src/qmail-remote/qmail-remote.c index a9fdd13..7c7f5f7 100644 --- a/src/qmail-remote/qmail-remote.c +++ b/src/qmail-remote/qmail-remote.c @@ -20,6 +20,9 @@ #include <skalibs/socket.h> #include <skalibs/ip46.h> #include <skalibs/unix-timed.h> +#ifdef DEBUG +# include <skalibs/prog.h> +#endif #include <s6-networking/config.h> #include <smtpd-starttls-proxy/config.h> @@ -201,6 +204,12 @@ int main (int argc, char const *const *argv) uint16_t port = 25 ; int r ; +#ifdef DEBUG + char progstr[18 + PID_FMT] = "qmail-remote: pid " ; + progstr[18 + pid_fmt(progstr + 18, getpid())] = 0 ; + PROG = progstr ; +#endif + if (argc-- < 4) dieusage() ; argv++ ; if (chdir(SMTPD_STARTTLS_PROXY_QMAIL_HOME) == -1) qmailr_tempusys("chdir to ", SMTPD_STARTTLS_PROXY_QMAIL_HOME) ; |
