(destroy_task_and_return_fd): rename to destroy_task.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-10-11 14:17:09 +03:00
parent 08136039b6
commit 6d79aa7d5d

View File

@ -103,7 +103,7 @@ register_task_running (file_op_context_t * ctx, pid_t pid, int fd, int to_child,
/* --------------------------------------------------------------------------------------------- */
static int
destroy_task_and_return_fd (pid_t pid)
destroy_task (pid_t pid)
{
TaskList *p = task_list;
TaskList *prev = 0;
@ -499,7 +499,7 @@ parent_va_call_string (void *routine, int argc, va_list ap)
void
unregister_task_running (pid_t pid, int fd)
{
destroy_task_and_return_fd (pid);
destroy_task (pid);
delete_select_channel (fd);
}
@ -508,7 +508,7 @@ unregister_task_running (pid_t pid, int fd)
void
unregister_task_with_pid (pid_t pid)
{
int fd = destroy_task_and_return_fd (pid);
int fd = destroy_task (pid);
if (fd != -1)
delete_select_channel (fd);
}