Changeset 42950
- Timestamp:
- Dec 2, 2025, 2:55:06 PM (5 months ago)
- Location:
- tags/ipp-ops-20220906/Ohana/src/opihi
- Files:
-
- 4 edited
-
lib.shell/opihi.c (modified) (3 diffs, 1 prop)
-
pclient/pclient.c.in (modified) (3 diffs, 1 prop)
-
pcontrol/JobOps.c (modified) (1 diff, 1 prop)
-
pcontrol/pcontrol.c.in (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ops-20220906/Ohana/src/opihi/lib.shell/opihi.c
- Property svn:mergeinfo set to
r40652 r42950 4 4 int opihi (int argc, char **argv) { 5 5 6 int Nbad;7 6 char *line, *prompt, *history; 8 7 pid_t ppid; … … 15 14 welcome (); 16 15 17 Nbad = 0; 16 // if HISTORY is defined, and does not have the value NONE, save history 17 int SaveHistory = TRUE; 18 if (!history || !strcasecmp(history, "none")) { SaveHistory = FALSE; } 19 20 int Nbad = 0; 18 21 while (1) { /** must exit with command "exit" or "quit" */ 19 22 if (Nbad == 10) exit (20); … … 40 43 if (*line) { 41 44 multicommand (line); 42 add_history (line);45 if (SaveHistory) { add_history (line); } 43 46 44 47 // the libedit version of readline does not support an incremental write to history file 45 48 # ifdef RL_READLINE_VERSION 46 if ( history != NULL) append_history (1, history);49 if (SaveHistory) { append_history (1, history); } 47 50 # endif 48 51 -
tags/ipp-ops-20220906/Ohana/src/opihi/pclient/pclient.c.in
- Property svn:mergeinfo set to
r39457 r42950 4 4 # define opihi_prompt "pclient: " 5 5 # define opihi_description "pcontrol client shell\n" 6 # define opihi_history " "6 # define opihi_history "NONE" 7 7 # define opihi_rcfile ".pcontrolrc" 8 8 … … 76 76 FreeBasic (); 77 77 FreePclient (); 78 gprint (GP_LOG, "Goodbye\n"); 78 gprint (GP_LOG, "Goodbye\n"); // sent to pcontrol to signal exit 79 80 free_error (); // init_error() called in lib.shell/startup.c general_init() 81 gprintFree (); // gprintInit() called in lib.shell/startup.c general_init() 82 79 83 return; 80 84 } … … 106 110 int status; 107 111 status = opihi (argc, argv); 112 108 113 exit (status); 109 114 } -
tags/ipp-ops-20220906/Ohana/src/opihi/pcontrol/JobOps.c
- Property svn:mergeinfo set to
r39457 r42950 270 270 271 271 FREE (job[0].hostname); 272 FREE (job[0].realhost); 272 273 for (i = 0; i < job[0].argc; i++) { 273 274 FREE (job[0].argv[i]); -
tags/ipp-ops-20220906/Ohana/src/opihi/pcontrol/pcontrol.c.in
- Property svn:mergeinfo set to
r39457 r42950 6 6 # define opihi_prompt "pcontrol: " 7 7 # define opihi_description "pcontrol client shell\n" 8 # define opihi_history " .pcontrol"8 # define opihi_history "NONE" 9 9 # define opihi_rcfile ".pcontrolrc" 10 11 # ifdef THREADED 12 static pthread_t clientsThread; 13 # endif 10 14 11 15 /* program-dependent initialization */ … … 14 18 OHANA_UNUSED_PARAM(argv); 15 19 16 # ifdef THREADED17 pthread_t clientsThread;18 # endif19 20 20 auto_break = TRUE; 21 21 … … 83 83 SetRunLevel (PCONTROL_RUN_HOSTS); 84 84 DownHosts (); 85 86 QuitCheckSystemThread(); 87 pthread_join (clientsThread, NULL); 88 85 89 ConfigFree (); 86 87 90 FreeBasic (); 88 91 FreePcontrol (); 92 93 free_error (); // init_error() called in lib.shell/startup.c general_init() 94 gprintFree (); // gprintInit() called in lib.shell/startup.c general_init() 89 95 90 96 return;
Note:
See TracChangeset
for help on using the changeset viewer.
