MySQL Forums
Forum List  »  MyISAM

Re: Threads not stopped when client stopped
Posted by: Ingo Strüwing
Date: December 16, 2005 04:35AM

This is normal behaviour if the client just goes away without notice.

If it does, depends on the client. The standard mysql command line clients behave that way.

But for more elaborate clients there is a chance to kill the server thread. At least in the C API we have the following:

mysql_thread_id() Returns the thread ID of the current connection. This value can be used as an argument to mysql_kill() to kill the thread.

mysql_kill() Asks the server to kill the thread specified by pid.

It is necessary to intercept the control-C signal and call these functions.

Other APIs may have similar functions.

Options: ReplyQuote


Subject
Views
Written By
Posted
2590
December 14, 2005 12:45PM
Re: Threads not stopped when client stopped
1816
December 16, 2005 04:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.