On 21/09/2020 16:31, Dimitry Sibiryakov wrote: > 21.09.2020 17:28, Scott Morgan via Firebird-devel wrote: >> Not as such, but it's relying on undefined behaviour (exiting an app >> whilst worker threads are still active) > > On Windows it is defined behavior. Call to ExitProcess() made by > default RTL will terminate all other threads. > On Linux it is actually the same. >
And every other platform? That's why I'm relying on the C++ standard. I suspect we're safe in general[0], just being careful. Scott [0] FreeBSD seems okay, but NetBSD has "XXX write me" :) https://www.netbsd.org/docs/internals/en/chap-processes.html#exit I'd assume MacOS works like BSD too, but it's difficult to be sure. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel