W dniu 05.06.2012 10:07, Rainer Gerhards pisze:
> Marcin,
>
> another shot. I now concentrate on why the sleep in your config seems to
> return immediately. To do so, I have added some additional instrumentation.
> Please apply this patch:
>
> diff --git a/runtime/srutils.c b/runtime/srutils.c
> index a473c83..2cc58ad 100644
> --- a/runtime/srutils.c
> +++ b/runtime/srutils.c
> @@ -486,7 +486,9 @@ srSleep(int iSeconds, int iuSeconds)
> BEGINfunc
> tvSelectTimeout.tv_sec = iSeconds;
> tvSelectTimeout.tv_usec = iuSeconds; /* micro seconds */
> +dbgprintf("srSleep: enter, sec=%d, usec=%d\n", (int)tvSelectTimeout.tv_sec,
> (in
> select(0, NULL, NULL, NULL, &tvSelectTimeout);
> +dbgprintf("srSleep: end, sec=%d, usec=%d (was sec=%d, usec=%d)\n",
> (int)tvSel
> ENDfunc
> }
>
Hi Rainer!
is it everything ok with this patch? It doesn't look in way gcc like;)
Marcin
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards