mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
jobctl/tty: foreground/background and send sighup on unregister
This commit is contained in:
@@ -14,5 +14,7 @@ pid_t jobctl_getsid(proc_t *proc);
|
||||
void jobctl_setctty(proc_t *proc, void *ctty);
|
||||
void *jobctl_getctty(proc_t *proc);
|
||||
int jobctl_signal(proc_t *proc, int signal);
|
||||
proc_t *jobctl_getforeground(proc_t *proc);
|
||||
int jobctl_setforeground(proc_t *session, proc_t *pgrp);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,8 @@ typedef struct {
|
||||
int minor;
|
||||
winsize_t winsize;
|
||||
vnode_t *mastervnode;
|
||||
spinlock_t sessionlock;
|
||||
struct proc_t *session;
|
||||
} tty_t;
|
||||
|
||||
void tty_init();
|
||||
|
||||
Reference in New Issue
Block a user