From 13beed65b3dcb681c830c748a3fc033d1706808a Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Tue, 17 Jun 2025 23:50:05 -0400 Subject: [PATCH] prc_chod seems to e working --- app/receiver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/receiver.c b/app/receiver.c index fdb90ef..9f358dc 100644 --- a/app/receiver.c +++ b/app/receiver.c @@ -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) -- 2.47.3