monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: signal related race conditions and deadlock


From: Martin Pala
Subject: Re: signal related race conditions and deadlock
Date: Sat, 13 Sep 2003 21:42:11 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030908 Debian/1.4-4

Martin Pala wrote:

Hi,

there are SIGTERM and SIGINT related problems:

------
FIRST:
------

1.) monit receives one of above mentioned signals and calls do_destroy()
2.) do_destroy() sets http engine stopped flag and returns - monit httpd then will stop in next cycle on 'while' condition 3.) monit will close all files and logs (asynchronously of monit httpd task)

Problem, is that monit httpd thread is able to log messages, while it is possible that the socket will be closed earlier.

Sorry - instead of closed "socket" i meant "filedescriptor" associated with logs.

...






reply via email to

[Prev in Thread] Current Thread [Next in Thread]