mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user