IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2006, 5:31:09 PM (20 years ago)
Author:
eugene
Message:

cleanup of timeouts and thread-safety issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/pcontrol.c

    r8424 r8546  
    2525  InitHostStacks ();
    2626
     27  /* set global signal masks (these apply to all threads launched below) */
     28  signal (SIGPIPE, gotsignal);
     29  signal (SIGTSTP, gotsignal);
     30  signal (SIGTTIN, gotsignal);
     31
    2732  rl_readline_name = opihi_name;
    2833  rl_attempted_completion_function = command_completer;
    2934# ifdef THREADED
     35  SetRunSystem (TRUE);
    3036  pthread_create (&clientsThread, NULL, &CheckSystem_Threaded, NULL);
    3137  rl_event_hook = NULL;
     
    4551
    4652  /* ignore the history file.  to change this, see, eg, mana.c */
    47   signal (SIGPIPE, gotsignal);
    48   signal (SIGTSTP, gotsignal);
    49   signal (SIGTTIN, gotsignal);
    5053  return;
    5154}
Note: See TracChangeset for help on using the changeset viewer.