Deleted Added
full compact
jobs.c (104275) jobs.c (107846)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 26 unchanged lines hidden (view full) ---

35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
40#endif
41#endif /* not lint */
42#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 26 unchanged lines hidden (view full) ---

35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
40#endif
41#endif /* not lint */
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: head/bin/sh/jobs.c 104275 2002-10-01 08:40:07Z mux $");
43__FBSDID("$FreeBSD: head/bin/sh/jobs.c 107846 2002-12-14 01:08:04Z tjr $");
44
45#include <fcntl.h>
46#include <signal.h>
47#include <errno.h>
48#include <paths.h>
49#include <unistd.h>
50#include <stdlib.h>
51#include <sys/param.h>

--- 911 unchanged lines hidden (view full) ---

963#endif
964 {
965 if (WIFEXITED(status))
966 sig = 0;
967 else
968 sig = WTERMSIG(status);
969 }
970 if (sig != 0 && sig != SIGINT && sig != SIGPIPE) {
44
45#include <fcntl.h>
46#include <signal.h>
47#include <errno.h>
48#include <paths.h>
49#include <unistd.h>
50#include <stdlib.h>
51#include <sys/param.h>

--- 911 unchanged lines hidden (view full) ---

963#endif
964 {
965 if (WIFEXITED(status))
966 sig = 0;
967 else
968 sig = WTERMSIG(status);
969 }
970 if (sig != 0 && sig != SIGINT && sig != SIGPIPE) {
971 if (thisjob->foreground && !WIFSTOPPED(status)) {
971 if (!mflag ||
972 (thisjob->foreground && !WIFSTOPPED(status))) {
972 i = WTERMSIG(status);
973 if ((i & 0x7F) < NSIG && sys_siglist[i & 0x7F])
974 out1str(sys_siglist[i & 0x7F]);
975 else
976 out1fmt("Signal %d", i & 0x7F);
977 if (WCOREDUMP(status))
978 out1str(" (core dumped)");
979 out1c('\n');

--- 250 unchanged lines hidden ---
973 i = WTERMSIG(status);
974 if ((i & 0x7F) < NSIG && sys_siglist[i & 0x7F])
975 out1str(sys_siglist[i & 0x7F]);
976 else
977 out1fmt("Signal %d", i & 0x7F);
978 if (WCOREDUMP(status))
979 out1str(" (core dumped)");
980 out1c('\n');

--- 250 unchanged lines hidden ---