mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-21 06:36:27 +00:00
_syswrite() callers check whether writing into an SCST sysfs attribute succeeded by checking whether the value returned by this function is defined(). Return undef (failed) instead of -1 (success) if syswrite() returned error code EBUSY (found this through source reading). Return $length instead of length($cmd) if the initial write triggered EAGAIN. Remove a superfluous $bytes = undef statement. Eliminate the variable $wait. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4400 d57e44dd-8a1f-0410-8b47-8ef2f437770f