mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add menu options to convert a popup into a pane.
This commit is contained in:
21
job.c
21
job.c
@ -201,6 +201,27 @@ fail:
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/* Take job's file descriptor and free the job. */
|
||||
int
|
||||
job_transfer(struct job *job)
|
||||
{
|
||||
int fd = job->fd;
|
||||
|
||||
log_debug("transfer job %p: %s", job, job->cmd);
|
||||
|
||||
LIST_REMOVE(job, entry);
|
||||
free(job->cmd);
|
||||
|
||||
if (job->freecb != NULL && job->data != NULL)
|
||||
job->freecb(job->data);
|
||||
|
||||
if (job->event != NULL)
|
||||
bufferevent_free(job->event);
|
||||
|
||||
free(job);
|
||||
return (fd);
|
||||
}
|
||||
|
||||
/* Kill and free an individual job. */
|
||||
void
|
||||
job_free(struct job *job)
|
||||
|
Reference in New Issue
Block a user