瀏覽代碼

Shell: Print job status after suspending a command

Andreas Kling 5 年之前
父節點
當前提交
0c6ce063e6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Shell/Shell.cpp

+ 3 - 0
Shell/Shell.cpp

@@ -674,6 +674,9 @@ void Shell::block_on_job(RefPtr<Job> job)
 
     loop.exec();
 
+    if (job->is_suspended())
+        job->print_status(Job::PrintStatusMode::Basic);
+
     restore_ios();
 }