]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Using TSLEEP as relax time within sorter.c
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 20 Jun 2025 03:51:52 +0000 (23:51 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 20 Jun 2025 03:51:52 +0000 (23:51 -0400)
app/sorter.c

index 7363a83c15e9ad4b3b86aeb9ab6716581b0cad7e..8b830afbdf73af4740165b080f86cd55238e1541 100644 (file)
@@ -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
 }