fix inaccuracy in VS_ISEQ macro

* double check of sched field
* compilation warning (boolean operator precedence)
Merge branch 'sighup' into yandex_build