Dave Shield <D.T.Shield@...> wrote:
> On Tue, 2006-01-31 at 02:31 +0100, Maik Broemme wrote:
> > Modern recent builds of Cygwin
> > (currently i am using Cygwin 188.8.131.52) has legacy support for
> > '/proc/uptime' which the get_uptime() function uses under linux.
> I'm a little concerned by that word "modern". How modern is
> modern? When was this feature introduced, and how widespread
> are earlier releases likely to be?
> More importantly, what happens if your patch is used on a
> system that does *not* include legacy support for /proc/uptime?
> Does it fail gracefully, or does it crash the agent?
Well every Cygwin build i used since two years (before i did not use
Cygwin) has support for '/proc/uptime' At this moment the patch does not
check if '/proc/uptime' exist, sorry. :( I can implement this and return
zero if it not exist.
The '/proc/uptime' support under Cygwin is some kind of "virtual" which
means that if the directory '/proc' not exist (it does not exist in a
clean Cygwin installation) it is still accessible.