//(void) fprintf(stdout,"%s JMPDBG phase='%d' ext=<%s>\n",OPEP,phase,ext);
switch (phase) {
case 0 : //Getting the list of file
+ (void) prc_settitle("%s scanning ext=%s",appname,ext);
fname=eml_getqfilelist(fname,ext);
if (fname==(char **)0)
phase=999; //Nothing to do
#define OPEP "sorter.c:sorting,"
#define TSLEEP 10
+unsigned long cycle;
_Bool action;
int delay;
int phase;
_Bool proceed;
+cycle=0;
action=false;
delay=1;
phase=0;
phase=999; //Immediate ending
break;
case 5 : //lets time pass according "busy"
+ cycle++;
delay=TSLEEP;
if (action==true)
delay=1;
+ (void) prc_settitle("%s sleeping mode (cycle=%08d)",appname,cycle);
(void) sleep(delay);
phase=0; //Looping
break;
}
break;
case 1 : //Preparing scan
+ (void) prc_preptitle(argc,argv,environ);
(void) rou_setappname(SORTER);
(void) rou_modesubrou(true);
(void) prc_chgid(argv[0]);
(void) sorting();
break;
default : //end of task
+ (void) prc_cleantitle();
params=par_freeparams(params);
(void) rou_loadconfig(config,false);
(void) sig_trapsignal(false,sig_alrm);
#define OPEP "modrec.c:rec_handlesmtp"
#define RELAX 5 //Relax time between process checking
+unsigned long cycle;
pid_t *childs;
char **confargv;
int nbrbind;
int phase;
_Bool proceed;
+cycle=0;
childs=(pid_t)0;
confargv=getconfargv();
nbrbind=0;
}
break;
case 5 : //lets continue within process loop
- if (foreground==false)
+ cycle++;
+ (void) prc_settitle("%s sleeping mode (cycle=%08d)",appname,cycle);
+ if (foreground==false)
phase=0;
break;
default : //SAFE Guard