monit-dev
[Top][All Lists]
Advanced

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

Re: monit monitor.c monitor.h control.c


From: Jan-Henrik Haukeland
Subject: Re: monit monitor.c monitor.h control.c
Date: 05 Dec 2002 05:45:13 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

Rory Toma <address@hidden> writes:

> Log message:
>       Fix the "clobbering" of p->do_validate. It wasn't really getting
>       clobbered, rather, the second instance of monit was changing
>       it's structure, and the running monit's structure was not being
>       changed. We now pass this through cervlet.c so we change the
>       correct structure.

Good work! To bad I didn't have time to check this before since I
think I would have nailed it pretty fast since I think this is more or
less aligned with the original logic I used in version <= 3.0.

Just a thought, if you move the code

+      if( exist_daemon() ) {
+       d_check_process(P, "stop");

into check_process and do the test there you could save some space in
monitor.c:do_action :-) 

-- 
Jan-Henrik Haukeland




reply via email to

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