Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2004 01:44:36 -0800 (PST)
From:      Mike Makonnen <mtm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libthr/thread thr_kern.c
Message-ID:  <200401290944.i0T9iaCH096502@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mtm         2004/01/29 01:44:36 PST

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_kern.c 
  Log:
  When suspending a thread if the timeout was very short or
  the system call got interrupted and the absolute timeout is
  converted to a relative timeout, it may happen that we get a
  negative number. In such a case, simply set the timeout to
  zero so that if the event that the thread wants to wait for has
  happened it can still return successfully, but if it hasn't
  happened then the thread doesn't suspend indefinitely. This should
  fix certain applications (including mozilla) that seem to hang
  indefinitely sometimes.
  
  Noticed and debugged by: Morten Johansen <root@morten-johansen.net>
  
  Revision  Changes    Path
  1.17      +11 -0     src/lib/libthr/thread/thr_kern.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401290944.i0T9iaCH096502>