[PATH 0 of 1] Fix check for nice() return value

2013-05-21 Thread Lee Duncan
I mentioned this before, but I didn't have a good solution at the time. In usr/iscsi_util.c, nice() is called like this: if (nice(-10) 0) log_debug(...) The problem is that nice() returns the current nice value, and that value can legitimately be less than zero, in

PATCH 1 of 1] correctly check return value of nice()

2013-05-21 Thread Lee Duncan
The nice() call can return a negative value, since it returns the previous nice value. Signed-off-by: Lee Duncan leeman.dun...@gmail.com --- usr/iscsi_util.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/iscsi_util.c b/usr/iscsi_util.c index 5e3420e..ac86847 100644

Re: [PATH 0 of 1] Fix check for nice() return value

2013-05-21 Thread The Lee-Man
Apologies for Subject formatting errors ... I need to wean myself off of OS X ... On Tuesday, May 21, 2013 2:15:00 PM UTC-7, The Lee-Man wrote: I mentioned this before, but I didn't have a good solution at the time. In usr/iscsi_util.c, nice() is called like this: if (nice(-10)