327 |
} |
} |
328 |
|
|
329 |
if(!S_ISDIR(stat_buf.st_mode)) { |
if(!S_ISDIR(stat_buf.st_mode)) { |
330 |
Event_post(s, EVENT_STOP, |
Event_post(s, EVENT_UNMONITOR, |
331 |
"Event: '%s' is not directory\n", s->name); |
"Event: '%s' is not directory\n", s->name); |
332 |
return FALSE; |
return FALSE; |
333 |
} |
} |
372 |
} |
} |
373 |
|
|
374 |
if(!S_ISREG(stat_buf.st_mode)) { |
if(!S_ISREG(stat_buf.st_mode)) { |
375 |
Event_post(s, EVENT_STOP, "Event: '%s' is not regular file\n", s->name); |
Event_post(s, EVENT_UNMONITOR, |
376 |
|
"Event: '%s' is not regular file\n", s->name); |
377 |
return FALSE; |
return FALSE; |
378 |
} |
} |
379 |
|
|
456 |
/* Test devices */ |
/* Test devices */ |
457 |
if(s->devicelist) { |
if(s->devicelist) { |
458 |
if(!DeviceInfo_Usage(s->devinfo, s->path)) { |
if(!DeviceInfo_Usage(s->devinfo, s->path)) { |
459 |
Event_post(s, EVENT_STOP, "Event: unable to read device state\n"); |
Event_post(s, EVENT_UNMONITOR, "Event: unable to read device state\n"); |
460 |
return FALSE; |
return FALSE; |
461 |
} |
} |
462 |
for(td= s->devicelist; td; td= td->next) { |
for(td= s->devicelist; td; td= td->next) { |