Re: [exim-dev] Running a delivery process under a debugger

Góra strony
Delete this message
Reply to this message
Autor: Florian Weimer
Data:  
Dla: exim-dev
Temat: Re: [exim-dev] Running a delivery process under a debugger
* Jakob Hirsch:

>> Surely there's some gdb option to attach to new processes?
>
> Yes, "set follow-fork-mode child", but seems to work only on HP-UX
> and Linux. The info pages suggest calling sleep() in the child code
> after the fork, so there's time to attach gdb to the child process.


For remote deliveries, you can get this effect if you temporarily add
a packet filter rule which drops (not rejects) those TCP packets.
This does not require patching the sources and recompiling Exim, and
it helped me to pinpoint my problem.