magwyz / pastec

Image recognition open source index and search engine
http://pastec.io
GNU Lesser General Public License v3.0
620 stars 175 forks source link

Fix signal handler #4

Closed elfring closed 10 years ago

elfring commented 10 years ago

The function "pthread_cond_signal" does not belong to the list of async-signal-safe functions. I guess that a different program design will be needed for your function "intHandler".

magwyz commented 10 years ago

This should be fixed by acab16c012eff9f938317b442140376b331b457d.

Thanks for reporting!

elfring commented 10 years ago

Are further checks and considerations needed for the implementation detail that the member function "HTTPServer::stop" is called over a pointer which is stored in the global variable "s"? Is this another concern for software portability around signal handlers?