ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/connection.C
(Generate patch)

Comparing gvpe/src/connection.C (file contents):
Revision 1.63 by pcg, Sun Dec 2 00:45:41 2007 UTC vs.
Revision 1.64 by pcg, Tue Dec 4 15:01:12 2007 UTC

806 { 806 {
807 slog (L_INFO, _("%s(%s): connection lost"), 807 slog (L_INFO, _("%s(%s): connection lost"),
808 conf->nodename, (const char *)si); 808 conf->nodename, (const char *)si);
809 809
810 if (::conf.script_node_down) 810 if (::conf.script_node_down)
811 if (!run_script (run_script_cb (this, &connection::script_node_down), false)) 811 {
812 run_script_cb cb;
813 callback_set (cb, this, connection, script_node_down);
814 if (!run_script (cb, false))
812 slog (L_WARN, _("node-down command execution failed, continuing.")); 815 slog (L_WARN, _("node-down command execution failed, continuing."));
816 }
813 } 817 }
814 818
815 delete ictx; ictx = 0; 819 delete ictx; ictx = 0;
816 delete octx; octx = 0; 820 delete octx; octx = 0;
817#if ENABLE_DNS 821#if ENABLE_DNS
1041 slog (L_INFO, _("%s(%s): connection established, protocol version %d.%d"), 1045 slog (L_INFO, _("%s(%s): connection established, protocol version %d.%d"),
1042 conf->nodename, (const char *)rsi, 1046 conf->nodename, (const char *)rsi,
1043 p->prot_major, p->prot_minor); 1047 p->prot_major, p->prot_minor);
1044 1048
1045 if (::conf.script_node_up) 1049 if (::conf.script_node_up)
1046 if (!run_script (run_script_cb (this, &connection::script_node_up), false)) 1050 {
1051 run_script_cb cb;
1052 callback_set (cb, this, connection, script_node_up);
1053 if (!run_script (cb, false))
1047 slog (L_WARN, _("node-up command execution failed, continuing.")); 1054 slog (L_WARN, _("node-up command execution failed, continuing."));
1055 }
1048 1056
1049 break; 1057 break;
1050 } 1058 }
1051 else 1059 else
1052 slog (L_ERR, _("%s(%s): sent and received challenge do not match"), 1060 slog (L_ERR, _("%s(%s): sent and received challenge do not match"),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines