func (sh *Shaper) runShaper(env *proc.Env) (err error) { select { case _ = <-env.Cancel: return env.ExitCanceled() } }