Diff for /freem/src/mumps.c between versions 1.4 and 1.7

version 1.4, 2025/03/09 19:50:47 version 1.7, 2025/03/24 16:07:55
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.7  2025/03/24 16:07:55  snw
    *   Force daemon into foreground on OS/2
    *
    *   Revision 1.6  2025/03/24 16:04:49  snw
    *   Force daemon into foreground on OS/2
    *
    *   Revision 1.5  2025/03/22 21:44:32  snw
    *   Make the startup messages fewer and add environment name to direct-mode prompt
    *
  *   Revision 1.4  2025/03/09 19:50:47  snw   *   Revision 1.4  2025/03/09 19:50:47  snw
  *   Second phase of REUSE compliance and header reformat   *   Second phase of REUSE compliance and header reformat
  *   *
Line 438  int main (int argc, char **argv, char ** Line 447  int main (int argc, char **argv, char **
         }          }
     }      }
 #endif  #endif
   
   #if defined(__OS2__)
       if (run_daemon == TRUE && nofork == FALSE) {
           printf ("freem:  running on OS/2; forcing daemon into foreground\r\n");
           nofork = TRUE;
       }
   #endif
       
     snprintf (config_file, 4096, "%s/freem/%s/freem.conf", SYSCONFDIR, shm_env);      snprintf (config_file, 4096, "%s/freem/%s/freem.conf", SYSCONFDIR, shm_env);
           
     if (run_daemon == TRUE && geteuid() == 0) {      if (run_daemon == TRUE && geteuid() == 0) {
Line 762  int main (int argc, char **argv, char ** Line 779  int main (int argc, char **argv, char **
                   
         fprintf (stderr, "Coherent Logic Development FreeM version %s\r\n", verstr);          fprintf (stderr, "Coherent Logic Development FreeM version %s\r\n", verstr);
         fprintf (stderr, "freem:  shared memory for environment %s initialized (%ld bytes of shared memory @ '%p')\r\nfreem:  system ready\r\n", shm_env, (long) shm_init_size, shm_config->dta);          fprintf (stderr, "freem:  shared memory for environment %s initialized (%ld bytes of shared memory @ '%p')\r\nfreem:  system ready\r\n", shm_env, (long) shm_init_size, shm_config->dta);
   
   #if defined(__OS2__)
           fprintf (stderr, "freem:  running on OS/2; daemon was forced into the foreground if not explicitly run with --nofork\r\n");
   #endif        
                   
         for (;;) {          for (;;) {
   
Line 884  int main (int argc, char **argv, char ** Line 905  int main (int argc, char **argv, char **
         snprintf (version, 255, "Copyright (C) 2014, 2020, 2021, 2023, 2025 Coherent Logic Development LLC\r\n\r\n\201");          snprintf (version, 255, "Copyright (C) 2014, 2020, 2021, 2023, 2025 Coherent Logic Development LLC\r\n\r\n\201");
         write_m (version);          write_m (version);
   
           /*
         printf ("Environment:       \t%s\r\n", shm_env);          printf ("Environment:       \t%s\r\n", shm_env);
         printf ("Environment Daemon:\tPID %d\r\n", shm_config->hdr->first_process);          printf ("Environment Daemon:\tPID %d\r\n", shm_config->hdr->first_process);
         printf ("Interpreter Process:\tPID %d\r\n", pid);          printf ("Interpreter Process:\tPID %d\r\n", pid);
                   */
   
     }      }
     else {      else {

Removed from v.1.4  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>