[erlang-bugs] Bug in the resolver?

Raimo Niskanen raimo+erlang-bugs@REDACTED
Tue Apr 12 13:51:28 CEST 2011


On Tue, Apr 12, 2011 at 01:35:33PM +0200, Raimo Niskanen wrote:
> On Tue, Apr 12, 2011 at 01:08:24PM +0200, Ahmed Omar wrote:
> > Hmmm, the crash doesn't look to be in subtraction (otherwise it would have
> > been badarg?),  it's a crash because of a function clause in now_ms (because
> > undefined won't match)
> > (and undefined looks to be generated only when timeout is 0 )
> 
> Well, I ment _conceptually_ subtract since now_ms/2 is supposed to
> return the number of elapsed microseconds i.e subtract

Milliseconds. Sorry. That should be milliseconds.

> its now() arguments, and now got 'undefined' instead
> of {MegaSec,Sec,MicroSec) as second argumnent.
> 
> 'undefined' must be a leftover from an unfinished implementation
> of either the case when you have timed out or when the
> timeout is 'infinity'. Nevertheless it is incorrect.
> 
> The Timeout variable is how long time still remains to wait of the
> initial user interface timeout.
> 
> > 
> > Maybe I'm missing something or my coffee doesn't work :)
> > 
: :
> > Follow me on twitter
> > @spawn_think <http://twitter.com/#!/spawn_think>
> 
> -- 
> 
> / Raimo Niskanen, Erlang/OTP, Ericsson AB
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-bugs mailing list