[CalendarServer-dev] Exception in recvfd --was: Re: continuing work on FreeBSD ports
Axel Rau
Axel.Rau at chaos1.de
Thu Feb 14 00:56:11 PST 2013
Hi,
Am 14.02.2013 um 09:04 schrieb Fredrik Unger:
>
> The buffers are not flushed [1], I might have added a manual flush after writes, or that it writes as the threads are exited.. eg you stop the server. If I remember correctly in my case a "crashed" calendarserver did not terminate the calendarserver.
That's right.
> Could have been that a /etc/init.d/calendarserver stop
> stopped the crashed server and flushed the files.
> Not sure anymore.
No, shutting down the server does not flush them.
I did not recognized in the 1st place that you have no close.
Closing them on function return and opening in append mode, in case file exist, on next function entry might be the way to go.
I will try fflush(3)...
Axel
---
PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
More information about the calendarserver-dev
mailing list