> >> > (If I change date at another terminal like "date 0101010102", sample
> > code is
> >> > blocked)
> >> Was it like that, or was it that?
> > was it that.... ^^;
> I was asking if your "date" string was just a sample, or if you really
> set the clock back by over a year?
nope. If NTP change system clock, maybe it's just one or two second.
I would not change the clock by "date" command.
NTP will change the system clock.
Quote:> >> I don't believe Sun makes any promises about Solaris being stable in
the
> >> face of backward timeshifts. You can completely fill up the TCP socket
> >> table by doing that.
> >> > I think this problem can solve with some kernel patch.
> >> Why do you need your code to work when the clock goes backward?
> > my system using NTP.
> > if system clock goes fast, NTP will backward the clock.
> Maybe by a second or two. You've set your clock back by over a year.
> That's very different.
> Do you need to set your clock back by more than a few seconds for any
> reason?
No. ^^
I said. I do not need to change the clock.
The clock may change by only the NTP service.
So It maybe different just one or two second.
The problem is NTP can backward the clock.
Then my application will*.
If you compile my sample code and set the clock for backward
during application running, you can understand my problem so easily. ^^
I could not solve this problem.
Thank you for your care.
PS : have a HAPPY day~ ^^