[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Router problems (v 2.99.24)



> Sorry about that last subject line.  Didn't notice it until I had actually
> sent it.
> 
> I had four routers start up; all died with that same error.
> 
> In my router directory I have the following files:
> 
> -rw-------   1 daemon   other        2197 Jan 18 17:10 165203-8113
> -rw-------   1 daemon   other        3006 Jan 18 17:10 165213-8110-8112
> -rw-------   1 daemon   other        1603 Jan 18 17:11 165256-8108
....

> >From the headers, wouldn't that mean multiple routers are trying to mail
> the same message?

	Router with pid  8110  had died for some reason, and 8112
	came up with that file -- and noticed the death of the 8110,
	and decided to grab it -- but I made mistake at file renaming,
	which now APPENDED new pid to the existing filename, when
	it should have replaced the pid..  Oops..

----------------------------------------------------------------
nic.funet.fi$ diff -c router/functions.c~ router/functions.c
*** router/functions.c~ Wed Jan 17 16:55:43 EET 1996
--- router/functions.c  Fri Jan 19 08:56:52 EET 1996
***************
*** 616,622 ****
--- 616,624 ----
            buf = (char *)realloc(buf, blen);
          }
  #endif
+         if (p) *p = 0;
          sprintf(buf, "%s-%d", filename, getpid());
+         if (p) *p = '-';
          if (eqrename(pathbuf, buf, 1) < 0)
            return 0;           /* something is wrong, erename() complains */
          filename = buf;
----------------------------------------------------------------


	But why they die ? Propably some race-condition I didn't
	foresaw :-(   (umm.. or too long filename..)

> David Riley         - University of Waterloo
> driley@direct.ca    - Internet Direct (Vancouver, B.C.)

	/Matti Aarnio <mea@nic.funet.fi>