You have a wait(1) before c_setminmax? (From the manual).