pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:38:    //! @[create_process], @[split_quoted_string]    static void create( string|array(string) args, void|mapping(string:mixed) m )    {    if( stringp( args ) ) {    args = split_quoted_string( [string]args   #ifdef __NT__    ,1   #endif /* __NT__ */    );    } -  if( m ) +  if( m ) {    ::create( [array(string)]args, [mapping(string:mixed)]m ); -  else -  ::create( [array(string)]args ); -  +     if(read_cb=m->read_callback)    call_out(watcher, 0.1);       if( (timeout_cb=m->timeout_callback) || m->timeout )    call_out(killer, m->timeout||15); -  +  } else +  ::create( [array(string)]args );    }       static void destroy() {    remove_call_out(watcher);    remove_call_out(killer);    }       static void watcher() {    // It was another sigchld, but not one from our process.    if(::status()==0)