Changeset 5106

Show
Ignore:
Timestamp:
07/19/09 04:39:10 (4 years ago)
Author:
jow
Message:

libs/nixio: don't close stdin, stdout or stderr during garbage collection

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/nixio/src/file.c

    r5058 r5106  
    330330    int *fdp = luaL_checkudata(L, 1, NIXIO_FILE_META); 
    331331    int res; 
    332     if (*fdp != -1) { 
     332    if (*fdp > 2) { 
    333333        do { 
    334334            res = close(*fdp);