[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [Exim] Python embedded in Exim
From:       Barry Pederson <barryp () medicine ! nodak ! edu>
Date:       2000-11-29 0:17:59
[Download RAW message or body]

"Jeffrey C. Ollie" wrote:
> 
> 
> There are also two new command line switches -ys and -yd that will
> force an immediate startup of Python or delay startup, overriding
> python_at_start.

Rather than chew up another option letter 'y' for python, you could use -pys
and -pyd instead.  This bit in exim.c should work:

-------------
    case 'p':

    /* -ps: force Perl startup; -pd force delayed Perl startup */
    /* -pys: force Python startup; -pyd force delayed Python startup */

    if (0) ;
    #ifdef EXIM_PERL
    else if (*argrest == 's' && argrest[1] == 0) perl_start_option = 1;
    else if (*argrest == 'd' && argrest[1] == 0) perl_start_option = -1;
    #endif
    #ifdef EXIM_PYTHON
    else if (strcmp(argrest, "yd") == 0) python_start_option = 1;
    else if (strcmp(argrest, "ys") == 0) python_start_option = -1;
    #endif
    else badarg = TRUE;
    break;
---------------

   Barry

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic