Changeset 364

Show
Ignore:
Timestamp:
06/06/07 23:42:30 (2 years ago)
Author:
blackhedd
Message:

supported rlimit manipulation, and added temporary support for epoll.
The epoll interface WILL change.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/ext/rubymain.cpp

    r347 r364  
    327327 
    328328 
     329/******** 
     330t__epoll 
     331********/ 
     332 
     333static VALUE t__epoll (VALUE self) 
     334{ 
     335        // Temporary. 
     336        evma__epoll(); 
     337        return Qnil; 
     338} 
     339 
     340 
     341/******************* 
     342t_set_rlimit_nofile 
     343*******************/ 
     344 
     345static VALUE t_set_rlimit_nofile (VALUE self, VALUE arg) 
     346{ 
     347        arg = (NIL_P(arg)) ? -1 : NUM2INT (arg); 
     348        return INT2NUM (evma_set_rlimit_nofile (arg)); 
     349} 
    329350 
    330351/*************************** 
     
    386407        rb_define_module_function (EmModule, "get_comm_inactivity_timeout", (VALUE(*)(...))t_get_comm_inactivity_timeout, 1); 
    387408        rb_define_module_function (EmModule, "set_comm_inactivity_timeout", (VALUE(*)(...))t_set_comm_inactivity_timeout, 2); 
     409        rb_define_module_function (EmModule, "set_rlimit_nofile", (VALUE(*)(...))t_set_rlimit_nofile, 1); 
     410 
     411        // Temporary: 
     412        rb_define_module_function (EmModule, "epoll", (VALUE(*)(...))t__epoll, 0); 
    388413 
    389414        rb_define_method (EmConnection, "get_outbound_data_size", (VALUE(*)(...))conn_get_outbound_data_size, 0);