/[monit]/monit/http/cervlet.c
ViewVC logotype

Diff of /monit/http/cervlet.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by martinp, Mon Feb 10 00:09:19 2003 UTC revision 1.51 by martinp, Mon Feb 10 19:39:55 2003 UTC
# Line 537  static void handle_action(HttpRequest re Line 537  static void handle_action(HttpRequest re
537                
538        if( is(action, "start") ) {        if( is(action, "start") ) {
539    
540          if(p->start)          if(p->start) {
541    
542            check_process(name, action);            LOCK(p->mutex)
543                check_process(name, action);
544              END_LOCK;
545    
546          else {          } else {
547    
548            send_error(res, SC_BAD_REQUEST,            send_error(res, SC_BAD_REQUEST,
549                       "Start method not defined for the process");                       "Start method not defined for the process");
# Line 553  static void handle_action(HttpRequest re Line 555  static void handle_action(HttpRequest re
555                
556        if( is(action, "stop") ) {        if( is(action, "stop") ) {
557    
558          if(p->stop)          if(p->stop) {
559    
560            check_process(name, action);            LOCK(p->mutex)
561                check_process(name, action);
562              END_LOCK;
563    
564          else {          } else {
565    
566            send_error(res, SC_BAD_REQUEST,            send_error(res, SC_BAD_REQUEST,
567                       "Stop method not defined for the process");                       "Stop method not defined for the process");
# Line 570  static void handle_action(HttpRequest re Line 574  static void handle_action(HttpRequest re
574        if( is(action, "restart") ) {        if( is(action, "restart") ) {
575    
576          if(p->start && p->stop) {          if(p->start && p->stop) {
577    
578            check_process(name, action);            LOCK(p->mutex)
579                check_process(name, action);
580              END_LOCK;
581    
582          } else {          } else {
583    

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26