Changeset 228 for branches/samba-3.2.x/source/lib/readline.c
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/lib/readline.c
r133 r228 46 46 #endif /* HAVE_NEW_LIBREADLINE */ 47 47 48 static bool smb_rl_done; 49 50 #if HAVE_LIBREADLINE 51 /* 52 * * MacOS/X does not have rl_done in readline.h, but 53 * * readline.so has it 54 * */ 55 extern int rl_done; 56 #endif 57 58 void smb_readline_done(void) 59 { 60 smb_rl_done = true; 61 #if HAVE_LIBREADLINE 62 rl_done = 1; 63 #endif 64 } 65 48 66 /**************************************************************************** 49 67 Display the prompt and wait for input. Call callback() regularly … … 70 88 } 71 89 72 while ( 1) {90 while (!smb_rl_done) { 73 91 timeout.tv_sec = 5; 74 92 timeout.tv_usec = 0; … … 88 106 } 89 107 } 108 SAFE_FREE(line); 109 return NULL; 90 110 } 91 111
Note:
See TracChangeset
for help on using the changeset viewer.