1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00
freebsd/bin
Martin Cracauer 7a8e920bb9 Do not exit on SIGINT in non-interactive shells, fixes PR 1206,
i.e. this makes emacs usable from system(3). Programs called from
shellscripts are now required to exit with proper signal status. That
means, they have to kill themself. Exiting with faked numerical exit
code is not sufficient.

Exit with proper signal status if script exits on signal.

Make the wait builtin interruptable, both with and without traps set.

Use volatile sig_atomic_t where (and only where) appropriate.

(Almost) fix printing of newlines on SIGINT.

Make traps setable from trap handlers. This is needed for shellscripts
that catch SIGINT for cleanup work but intend to exit on it, hance
have to kill themself from a trap handler. I.e. mkdep.

While I'm at it, make it -Wall clean. -Wall is not enabled in
Makefile, since vararg warnx() macro calls in usr.bin/printf/printf.c
are not -Wall-able.
PR:		1206
Obtained from:	Basic SIGINT fix from Bruce Evans
1998-08-24 10:20:37 +00:00
..
cat Restore Lite2 sccsids by removing `const'. Improve documentation a little. 1998-05-13 07:16:37 +00:00
chflags
chio Fix a bunch of spelling errors. 1998-06-04 21:06:07 +00:00
chmod Improve description of absolute modes. 1998-05-19 06:24:50 +00:00
cp Don't attempt to change owner/mode/flags that don't need to changed. 1998-06-10 06:29:23 +00:00
csh Document the printf built-in. 1998-07-27 21:31:19 +00:00
date .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT 1998-05-13 07:57:49 +00:00
dd Restore Lite-2 sccsid. Restore include of sys/types.h. 1998-05-13 07:33:54 +00:00
df .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT 1998-05-13 07:57:49 +00:00
domainname Correct use of .Nm. Add rcsid. 1998-05-13 07:39:11 +00:00
echo Correct use of .Nm. Add rcsid. 1998-05-13 07:39:11 +00:00
ed Silence some warnings when building on the alpha. 1998-08-07 09:39:11 +00:00
expr Correct use of .Nm. 1998-05-13 07:43:56 +00:00
hostname Correct use of .Nm. Add rcsid. 1998-05-13 07:47:35 +00:00
kill kill.1: Remove reference to obsolete sigvec(2) man page. Removed 1998-05-18 03:33:11 +00:00
ln Correct use of .Nm. Add rcsid. 1998-05-15 06:19:05 +00:00
ls Add missing "else", without whom the prev. commit is a null change. 1998-08-02 22:47:11 +00:00
mkdir correct use of .Nm. Add rcsid. 1998-05-15 06:23:45 +00:00
mv Fixed printf format errors. 1998-06-28 21:00:04 +00:00
pax Make sure we pass the length - 1 to readlink, since it adds its own 1998-06-09 03:38:43 +00:00
ps Pick up kernel variables/constants using sysctl rather than through /dev/mem 1998-06-30 21:34:14 +00:00
pwd Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
rcp Fix LIBDIR (for aout/ELF). 1998-08-06 21:41:13 +00:00
rm .Nm rm -> .Nm. 1998-05-18 06:37:35 +00:00
rmail Use sendmail-8.9.1 rmail (with our changes). 1998-08-04 15:19:16 +00:00
rmdir Correct use of .Nm. Add rcsid. 1998-05-18 06:40:56 +00:00
sh Do not exit on SIGINT in non-interactive shells, fixes PR 1206, 1998-08-24 10:20:37 +00:00
sleep Correct use of .Nm. Add rcsid. 1998-05-18 06:51:59 +00:00
stty Fixed printf format errors. 1998-06-28 18:08:54 +00:00
sync Correct use of .Nm. Add section number to .Xr references. Add rcsid. 1998-05-18 06:50:17 +00:00
test Correct use of .Nm. Add rcsid. 1998-05-18 06:51:59 +00:00
Makefile Now that alpha uses FreeBSD syscalls, all these work. 1998-08-15 12:27:23 +00:00
Makefile.inc