[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Router problems (v 2.99.24)
- To: driley@aphex.direct.ca (David Riley)
- Subject: Re: Router problems (v 2.99.24)
- From: Matti Aarnio <mea@utu.fi>
- Date: Fri, 19 Jan 1996 10:19:36 +0200 (EET)
- Cc: zmailer@nic.funet.fi
- In-Reply-To: <Pine.SOL.3.91.960118171514.8330E-100000@aphex.direct.ca> from "David Riley" at Jan 18, 96 05:16:55 pm
> 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>