From: Jorgen Loland Date: September 28 2010 1:05pm Subject: Re: bzr commit into mysql-next-mr-bugfixing branch (tor.didriksen:3300) Bug#52002 List-Archive: http://lists.mysql.com/commits/119276 Message-Id: <4CA1E809.4020508@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit > +/* > + Make the program fail, without creating a core file. > + abort() will send SIGABRT which (most likely) generates core. > + Use SIGKILL instead, which cannot be caught. > + An alternative would be to use _exit(EXIT_FAILURE), > + but then valgrind would report lots of memory leaks. > + */ > +#ifdef __WIN__ > +#define DBUG_SUICIDE() DBUG_ABORT() > +#else > +#define DBUG_SUICIDE() (_db_flush_(), kill(getpid(), SIGKILL)) > +#endif Verified on linux, but since I don't have a Win-box I'll rather ask a stupid question. Does ^ mean that dbug_suicide will do what dbug_abort did before (dump cores) on win-platforms? -- Jørgen Løland | Senior Software Engineer | +47 73842138 Oracle MySQL Trondheim, Norway