int g(struct s *sp)
{
	if (ready(sp)) {
		if (sp->on) {
			check_new(sp);
			run(sp);
		}
		if (sp->on) {
			run(sp);
		}
	}
}
