guider
guider copied to clipboard
Choose an error code according to a failed priority setting
trafficstars
The script “guider.py” contains the following source code at the moment.
…
except:
SysMgr.printErr((
'fail to set the I/O schedling priority '
'for %s(%s) to %s(%s)[%s]') % \
(comm, pid, ioclass, pri, nmWho), True)
sys.exit(0)
…
- I suggest to use the text “
failed to set the I/O scheduling priority” instead. - Would you like to pass a more appropriate error code to the exit method call?
I completely agree with you ;(