version 1.21, 2015/02/05 10:26:29 |
version 1.22, 2015/02/12 09:56:19 |
|
|
int empty, flags; |
int empty, flags; |
char s[1024]; |
char s[1024]; |
|
|
|
cmdq->references++; |
notify_disable(); |
notify_disable(); |
|
|
empty = TAILQ_EMPTY(&cmdq->queue); |
empty = TAILQ_EMPTY(&cmdq->queue); |
|
|
if (cmdq->client_exit > 0) |
if (cmdq->client_exit > 0) |
cmdq->client->flags |= CLIENT_EXIT; |
cmdq->client->flags |= CLIENT_EXIT; |
if (cmdq->emptyfn != NULL) |
if (cmdq->emptyfn != NULL) |
cmdq->emptyfn(cmdq); /* may free cmdq */ |
cmdq->emptyfn(cmdq); |
empty = 1; |
empty = 1; |
|
|
out: |
out: |
notify_enable(); |
notify_enable(); |
|
cmdq_free(cmdq); |
|
|
return (empty); |
return (empty); |
} |
} |
|
|