Re: [Exim] Re: Bug#210847: exim4: -oP option does not work

Página Inicial
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
Para: exim-users
CC: 210847
Assunto: Re: [Exim] Re: Bug#210847: exim4: -oP option does not work
On Sun, Sep 14, 2003 at 11:21:14AM +0200, Andreas Metzler wrote:
[..]
> I have verified it, -oP seems to be completely ignored


s/ -oP /the value given as argument to -oP /
-oP _does_ trigger writing to the pid-file.

Afaict this should fix it:
----------------------------
*** CVS/alioth/exim/exim/src/daemon.c    Mon Aug 18 16:55:28 2003
--- /tmp/daemon.c.new    Sun Sep 14 12:42:46 2003
***************
*** 1229,1235 ****
  if (running_in_test_harness || write_pid)
    {
    FILE *f;
!   if (pid_file_path[0] == 0)
      pid_file_path = string_sprintf("%s/exim-daemon.pid", spool_directory);


    f = Ufopen(pid_file_path, "wb");
--- 1229,1237 ----
  if (running_in_test_harness || write_pid)
    {
    FILE *f;
!   if (override_pid_file_path != NULL)
!     pid_file_path = override_pid_file_path;
!   else if (pid_file_path[0] == 0)
      pid_file_path = string_sprintf("%s/exim-daemon.pid", spool_directory);


    f = Ufopen(pid_file_path, "wb");
----------------------------


Please triplecheck, I am not familiar with exim's internals and might
have made some stupid mistake. BTW the comment in front of this "The
variable daemon_write_pid is used to control this." should probably be
s/daemon_write_pid/write_pid/.
              cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"