Changeset 374

Show
Ignore:
Timestamp:
06/08/07 08:38:50 (2 years ago)
Author:
blackhedd
Message:

fixed data-initialization bug in rlimit call.

Files:

Legend:

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

    r373 r374  
    195195        #ifdef OS_UNIX 
    196196        struct rlimit rlim; 
     197        getrlimit (RLIMIT_NOFILE, &rlim); 
    197198        if (nofiles >= 0) { 
    198199                rlim.rlim_cur = nofiles; 
     
    201202                setrlimit (RLIMIT_NOFILE, &rlim); 
    202203                // ignore the error return, for now at least. 
     204                // TODO, emit an error message someday when we have proper debug levels. 
    203205        } 
    204206        getrlimit (RLIMIT_NOFILE, &rlim);