Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/lib/readline.c

    r133 r228  
    4646#endif /* HAVE_NEW_LIBREADLINE */
    4747
     48static 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 *    */
     55extern int rl_done;
     56#endif
     57
     58void smb_readline_done(void)
     59{
     60        smb_rl_done = true;
     61#if HAVE_LIBREADLINE
     62        rl_done = 1;
     63#endif
     64}
     65
    4866/****************************************************************************
    4967 Display the prompt and wait for input. Call callback() regularly
     
    7088        }
    7189
    72         while (1) {
     90        while (!smb_rl_done) {
    7391                timeout.tv_sec = 5;
    7492                timeout.tv_usec = 0;
     
    88106                }
    89107        }
     108        SAFE_FREE(line);
     109        return NULL;
    90110}
    91111
Note: See TracChangeset for help on using the changeset viewer.