call Lwt.wakeup_paused before polling the thread in Lwt_main.run
call Lwt.wakeup_paused before polling the thread in Lwt_main.run

Ignore-this: 5f06d56e6d89d9b984f3ce41659beaa3

Otherwise, if the thread terminates in wakeup_paused, the scheduler
may wait indefinitly for nothing.

darcs-hash:20100504133633-c41ad-7976869aa57bc45fe37045a1dc9cd46defcf5ec9.gz

avsm/lwt-OLD,avsm/lwt-OLD