IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2022, 10:26:42 AM (4 years ago)
Author:
eugene
Message:

stop pcontrol threads and exit before shutting down

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/Ohana/src/opihi/pcontrol/pcontrol.c.in

    r39457 r42173  
    99# define opihi_rcfile ".pcontrolrc"
    1010
     11# ifdef THREADED 
     12  static pthread_t clientsThread;
     13# endif
     14
    1115/* program-dependent initialization */
    1216void program_init (int *argc, char **argv) {
     
    1418  OHANA_UNUSED_PARAM(argv);
    1519 
    16 # ifdef THREADED 
    17   pthread_t clientsThread;
    18 # endif
    19 
    2020  auto_break = TRUE;
    2121
     
    8383  SetRunLevel (PCONTROL_RUN_HOSTS);
    8484  DownHosts ();
     85
     86  QuitCheckSystemThread(); pthread_join (clientsThread, NULL);
     87
    8588  ConfigFree ();
    86 
    8789  FreeBasic ();
    8890  FreePcontrol ();
Note: See TracChangeset for help on using the changeset viewer.