From: Jean-Marc Pigeon (Delson) Date: Fri, 20 Jun 2025 03:51:52 +0000 (-0400) Subject: Using TSLEEP as relax time within sorter.c X-Git-Tag: tag-0.9~74 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=f46d8ebc7fcb41e64d98bf6bd73c4a5093a84d61;p=jmp%2Fmailleur Using TSLEEP as relax time within sorter.c --- diff --git a/app/sorter.c b/app/sorter.c index 7363a83..8b830af 100644 --- a/app/sorter.c +++ b/app/sorter.c @@ -100,6 +100,7 @@ int main(int argc,char *argv[]) { #define OPEP "sorter.c:main," +#define TSLEEP 5 int status; ARGTYP *params; @@ -131,7 +132,7 @@ while (proceed==true) { } break; case 2 : //check about signal process - (void) sleep(5); + (void) sleep(TSLEEP); if (hangup==true) { (void) rou_alert(0,"%s got hangup signal",OPEP); phase=999; //exiting loop @@ -164,5 +165,7 @@ while (proceed==true) { phase++; } (void) exit(status); + +#undef TSLEEP #undef OPEP }