aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2021-12-03 22:43:47 +0100
committerFranciszek Malinka <franciszek.malinka@gmail.com>2021-12-03 22:43:47 +0100
commita0da531438307b0d28fa66a1b3e01081be9251df (patch)
tree6af0c9b777bc8d864ff6687a9f105d1617657e06
parentdc4c955e6fb39597abb43e59aecc9e64e78c87d1 (diff)
second first try
-rw-r--r--jobs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/jobs.c b/jobs.c
index e7120e1..1308f9a 100644
--- a/jobs.c
+++ b/jobs.c
@@ -267,8 +267,8 @@ void watchjobs(int which) {
/* TODO: Report job number, state, command and exit code or signal. */
#ifdef STUDENT
- /* MY-TODO: Maybe this can be done cleaner? */
- #define KILLED 3
+/* MY-TODO: Maybe this can be done cleaner? */
+#define KILLED 3
const char *state_to_name[] = {"exited", "running", "suspended", "killed"};
sigset_t mask;
@@ -295,7 +295,7 @@ void watchjobs(int which) {
if (state == FINISHED) {
printf(", status=%d", status);
deljob(job);
- }
+ }
printf("\n");
}
Sigprocmask(SIG_SETMASK, &mask, NULL);