MSGF_DONE needs to be cleared when a message is to be handled asynchronously.
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 22 Oct 2003 01:01:16 +0000 (01:01 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 22 Oct 2003 01:01:16 +0000 (01:01 +0000)
Nobody uses lwkt_waitmsg() yet so the bug didn't effect anything.

Noticed-by: Galen Sampson <galen_sampson@yahoo.com>
sys/kern/lwkt_msgport.c

index 4e99e8d..a06e027 100644 (file)
@@ -23,7 +23,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $DragonFly: src/sys/kern/lwkt_msgport.c,v 1.5 2003/08/12 02:36:15 dillon Exp $
+ * $DragonFly: src/sys/kern/lwkt_msgport.c,v 1.6 2003/10/22 01:01:16 dillon Exp $
  */
 
 #include <sys/param.h>
@@ -291,6 +291,7 @@ int
 lwkt_putport(lwkt_port_t port, lwkt_msg_t msg)
 {
     crit_enter();
+    msg->ms_flags &= ~MSGF_DONE;
     _lwkt_putport(port, msg);
     crit_exit();
     return(EASYNC);