mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 07:47:48 +00:00
Shell: Move printing job status into a Job::print_status() helper
This is only used by the "jobs" builtin right now, but more soon.
This commit is contained in:
parent
d9aecc8e08
commit
22dd5a7021
4 changed files with 86 additions and 44 deletions
|
@ -92,6 +92,14 @@ public:
|
|||
|
||||
void deactivate() const { m_active = false; }
|
||||
|
||||
enum class PrintStatusMode {
|
||||
Basic,
|
||||
OnlyPID,
|
||||
ListAll,
|
||||
};
|
||||
|
||||
bool print_status(PrintStatusMode);
|
||||
|
||||
private:
|
||||
Job(pid_t pid, unsigned pgid, String cmd, u64 job_id)
|
||||
: m_pgid(pgid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue