A process relinquishes ownership of a channel by one of the following:
irWCheck(&ev)
{
switch(ev.event_id) {
.
.
.
IRE_PLAY_DONE:
(void) irSetEvent(ev.cod, IRE_DEINIT_DONE, IRF_NOTIFY);
(void) irDeinit(ev.cid);
break;
IRE_DEINIT_DONE:
exit(0);<br>.
.
.
}
}