EMPTYWAIT
set_bit(EMPTYWAIT, &ch->statusflags);
if (test_bit(EMPTYWAIT, &p->statusflags) &&
clear_bit(EMPTYWAIT, &p->statusflags);