Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10062
Modified Files:
mal_client.mx
Log Message:
Update the client record before you shoot yourself.
Index: mal_client.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_client.mx,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -d -r1.148 -r1.149
--- mal_client.mx 16 May 2007 21:20:08 -0000 1.148
+++ mal_client.mx 29 May 2007 22:03:10 -0000 1.149
@@ -539,6 +539,7 @@
@c
void freeClient(Client c)
{
+ Thread t= c->mythread;
c->mode = FINISHING;
/* epilogue actions have been done already */
@@ -587,12 +588,12 @@
@-
The threads may not be removed, but should become dormant
@c
- THRdel(c->mythread);
+ c->user = oid_nil;
+ c->mode = FREECLIENT;
c->mythread = 0;
c->mypid = 0;
+ THRdel(t); /* you may perform suicide */
/* THRsuspend(c->mythread); still unsafe */
- c->user = oid_nil;
- c->mode = FREECLIENT;
}
@-
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins