Ignore:
Timestamp:
02/14/03 17:12:58 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/candrv/vmodican.cc

    r1727 r1757  
    6464int VmodIcan::Ioctl(int msg, void *arg)
    6565{
    66     return ioctl(fd, msg, (int)arg) >= 0;
     66    return fd<0 ? 1 : ioctl(fd, msg, (int)arg) >= 0;
    6767}
    6868
     
    104104void *VmodIcan::Thread()
    105105{
     106    if (fd<0)
     107        return NULL;
     108
    106109    lout << "- Starting Receiver Loop." << endl;
    107110
     
    946949        cout << "Cannot open device '" << dev << "'... exit." << endl;
    947950        cout << strerror(errno) << endl;
    948         exit(1);                       // open module
     951//        exit(1);                       // open module
    949952    }
    950953
Note: See TracChangeset for help on using the changeset viewer.