]> SAFE projects GIT repository - jmp/mailleur/commitdiff
prc_chod seems to e working
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 03:50:05 +0000 (23:50 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 03:50:05 +0000 (23:50 -0400)
app/receiver.c

index fdb90ef7a0456a37f43c6e6f7c4a72bfa7ef65ac..9f358dc8d0d3d7843d032e6a9ac2b1fef610f6a1 100644 (file)
@@ -52,6 +52,8 @@ while (proceed==true) {
       break;
     case 1      :       //initialising process
       //changing the working ID if started as root
+      if (foreground==true) {
+        (void) fprintf(stdout,"Running application in foreground\n");
       (void) prc_chgid(argv[0]);
       (void) prc_preptitle(argc,argv,environ);
       (void) rou_setappname(RECNAME);
@@ -66,9 +68,6 @@ while (proceed==true) {
       if (foreground==false) {
         if (prc_divedivedive()!=0)
           phase=999;    //direct exit
-        }
-      else
-        (void) fprintf(stdout,"Running application in foreground\n");
       break;
     case 3      :       //doing main task
       if (prc_locking(appname,true,5)==false)