Minor versionning fixes and comments

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1610 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-04-13 18:30:53 +00:00
parent ff6d116e49
commit ea66767c25
2 changed files with 8 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ include/iscsi_scst_itf_ver.h: include/iscsi_scst.h
echo "/* Autogenerated, don't edit */" >include/iscsi_scst_itf_ver.h
echo "" >>include/iscsi_scst_itf_ver.h
echo -n "#define ISCSI_SCST_INTERFACE_VERSION " >>include/iscsi_scst_itf_ver.h
echo -n "ISCSI_VERSION_STRING \"_\" " >>include/iscsi_scst_itf_ver.h
echo "\"`sha1sum include/iscsi_scst.h|awk '{printf $$1}'`\"" >>include/iscsi_scst_itf_ver.h
install: all

View File

@@ -730,6 +730,11 @@ void handle_iscsi_events(int fd)
#endif
int rc;
/*
* The way of handling errors by exit() is one of the worst possible,
* but IET developers thought it's OK. ToDo: fix somewhen.
*/
retry:
if ((rc = nl_read(fd, &event, sizeof(event))) < 0) {
if (errno == EAGAIN)
@@ -829,7 +834,8 @@ retry:
break;
default:
log_warning("Unknown event %u", event.code);
log_error("Unknown event %u", event.code);
/* We might be out of sync in size */
exit(-1);
break;
}