R:220 mailleur.example.com ESMTP (cleartext) emlrcvr...
C:ORGN 127.127.0.2
R:220 mailleur.example.com ESMTP (cleartext) emlrcvr...
-C:WAIT 100
+#C:WAIT 100
#====================================================
S:HELO example.com
#R:250-mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.127.0.2/feed2.example.com]
phase=0;
proceed=true;
while (proceed==true) {
- (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
switch (phase) {
case 0 : //do we have a log name?
if (logname==(char *)0) {
phase=0;
proceed=true;
while (proceed==true) {
- (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
switch (phase) {
case 0 : //do we have a log reference?
if (log==(LOGTYP *)0)
phase=0;
proceed=true;
while (proceed==true) {
- (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
switch (phase) {
case 0 : //is the connect still active
if (soc->connected==false) //no!, no need to shutdown
"(errno=<%s>)",
OPEP,soc->ip,soc->port,strerror(errno));
}
- (void) rou_alert(0,"JMPDBG %s sleep in",OPEP,phase);
- (void) sleep(1); //JMPDBG
- (void) rou_alert(0,"JMPDBG %s sleep out",OPEP,phase);
break;
default : //SAFE Guard
proceed=false;
phase=0;
proceed=true;
while (proceed==true) {
- (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
switch (phase) {
case 0 : //link still open?
if (soc_receive(socptr)<0) {
phase=0;
proceed=true;
while (proceed==true) {
- (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
switch (phase){
case 0 : //check for binding
if (contact==(CONTYP *)0) {
phase=0;
proceed=true;
while (proceed==true) {
- (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
switch (phase) {
case 0 : //waiting contact
(void) rou_checkleak(true);
case 3 : //connection terminated
contact=eml_dropcontact(contact);
(void) rou_checkleak(false);
- (void) rou_alert(0,"%s JMPBG apres checleak",OPEP);
break;
default : //SAFE guard
proceed=false;
break;
case 4 : //Relax time
phase=0; //lets continue to check childs
- (void) rou_alert(0,"%s, start sleep",OPEP);
- (void) sleep(10); //signal received to exit fast.
+ (void) rou_alert(5,"%s, start sleep",OPEP);
+ (void) sleep(5); //signal received to exit fast.
if (childout==true) {
- (void) rou_alert(0,"%s, Got child out",OPEP);
+ (void) rou_alert(5,"%s, Got child out",OPEP);
childout=false;
}
- (void) rou_alert(0,"%s, Exit from sleep",OPEP);
+ (void) rou_alert(5,"%s, Exit from sleep",OPEP);
if ((hangup==true)||(reload==true))
phase=999; //exiting under signal
break;
(void) snprintf(cmd,sizeof(cmd),"sed -i '/%d/d' %s",getpid(),ENABLE);
break;
}
- (void) rou_alert(0,"JMPDBG leak command=<%s>",cmd);
if ((status=system(cmd))!=0) {
(void) rou_alert(0,"status '%d' to memleak command <%s> (bug?)",status,cmd);
}
{
#define OPEP "unisig.c:sig_alrm"
-(void) rou_alert(0,"%s, signal <%s> received",OPEP,strsignal(sig));
+(void) rou_alert(9,"%s, signal <%s> received",OPEP,strsignal(sig));
switch (sig)
{
case SIGCHLD : {
-/*
- struct signalfd_siginfo sfd_si;
-
- if (read(sfd,&sfd_si,sizeof(sfd_si))<0) {
- (void) rou_alert(0,"%s, Unable to get siginfo (error=<%s>)",
- OPEP,strerror(errno));
- }
- */
childout=true;
while (waitpid(-1,(int *)0,WNOHANG)>0);
}
}
//able to receive next signal
(void) signal(sig,sig_alrm);
-(void) rou_alert(0,"%s, signal <%s> exited",OPEP,strsignal(sig));
#undef OPEP
}
/*