tmux  3.2a
About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.
  Fossies Dox: tmux-3.2a.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

job.c File Reference
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "tmux.h"
Include dependency graph for job.c:

Go to the source code of this file.

Data Structures

struct  job
 

Functions

static void job_read_callback (struct bufferevent *, void *)
 
static void job_write_callback (struct bufferevent *, void *)
 
static void job_error_callback (struct bufferevent *, short, void *)
 
static LIST_HEAD (joblist, job)
 
void job_free (struct job *job)
 
void job_resize (struct job *job, u_int sx, u_int sy)
 
void job_check_died (pid_t pid, int status)
 
int job_get_status (struct job *job)
 
void * job_get_data (struct job *job)
 
struct bufferevent * job_get_event (struct job *job)
 
void job_kill_all (void)
 
int job_still_running (void)
 
void job_print_summary (struct cmdq_item *item, int blank)
 

Function Documentation

◆ job_check_died()

void job_check_died ( pid_t  pid,
int  status 
)

◆ job_error_callback()

static void job_error_callback ( struct bufferevent *  bufev,
short  events,
void *  data 
)
static

◆ job_free()

void job_free ( struct job job)

◆ job_get_data()

void* job_get_data ( struct job job)

◆ job_get_event()

struct bufferevent* job_get_event ( struct job job)

◆ job_get_status()

int job_get_status ( struct job job)

Definition at line 325 of file job.c.

References job::status.

Referenced by cmd_if_shell_callback(), cmd_run_shell_callback(), and popup_job_complete_cb().

◆ job_kill_all()

void job_kill_all ( void  )

Definition at line 346 of file job.c.

References job::pid.

Referenced by server_start().

◆ job_print_summary()

void job_print_summary ( struct cmdq_item item,
int  blank 
)

Definition at line 371 of file job.c.

References job::cmd, cmdq_print(), job::fd, job::pid, and job::status.

◆ job_read_callback()

static void job_read_callback ( struct bufferevent *  bufev,
void *  data 
)
static

Definition at line 244 of file job.c.

References job::data, and job::updatecb.

◆ job_resize()

void job_resize ( struct job job,
u_int  sx,
u_int  sy 
)

Definition at line 226 of file job.c.

References fatal(), job::fd, job::flags, JOB_PTY, and log_debug().

Referenced by popup_handle_drag().

◆ job_still_running()

int job_still_running ( void  )

Definition at line 358 of file job.c.

References job::flags, JOB_NOWAIT, job::JOB_RUNNING, and job::state.

Referenced by server_loop().

◆ job_write_callback()

static void job_write_callback ( struct bufferevent *  bufev,
void *  data 
)
static

Definition at line 258 of file job.c.

References job::cmd, job::data, job::event, job::fd, job::flags, JOB_KEEPWRITE, log_debug(), and job::pid.

◆ LIST_HEAD()

static LIST_HEAD ( joblist  ,
job   
)
static

Definition at line 67 of file job.c.