| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Submitted by: Bruce Evans
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PR: docs/5399
|
|
|
|
|
|
| |
Removed explicit dependencies of foo.o on foo.c. These were mainly
placeholders for comments about missing dependencies of tools objects
on headers. This problem needs to be handled more generally.
|
| |
|
| |
|
|
|
|
|
| |
a separate object tree doesn't exist. Crufty makefiles will have to
put y.tab.h in SRCS so that we know not to create foo.h from foo.y.
|
| |
|
|
|
|
|
|
| |
This is needed for the '-e' option. See the PR for more details.
PR: 6047
Reviewed by: PR submitter, silence on review request.
|
|
|
|
| |
on generated headers). This is now handled generally in bsd.prog.mk.
|
|
|
|
| |
sourced by the "." command.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
urgent need is when you run sh around a program that intentionally
uses SIGQUIT/SIGINT for asynchronous events, i.e. $EDITOR started from
system(2), like many mailers do. This fixes PR bin/1206 and possibly
bin/4241.
The solution committed has been tested for a large number of possible
cases (see recent discussion on cvs-committers). I completed a make
world, made sure 'make world' is interruptable and used the changed
/bin/sh as a login shell all day, including job control and using
SIGQUIT-catching programs (to write this message :-).
PR: bin/1206
Reviewed by: discussion on cvs-commiters
|
|
|
|
|
| |
PR: 5415
Submitted by: Sergei S. Laskavy <laskavy@pc759.cs.msu.su>
|
| |
|
|
|
|
|
| |
Reorder includes to be alphabetical some places since I already was in
here.
|
|
|
|
| |
signal.
|
|
|
|
|
|
| |
cast value that was always ignored. Rev.1.9 of trap.c made this
more bogus by returning a semantically different value after calling
siginterrupt(). Avoid these problems by not returning a value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
trap 'echo xxx' 1 2 3 15
read x
is not interrupted by ^C (due to restartable read syscall) and must be
interrupted per POSIX
Worse case:
read -t 5 x
hangs forever after ^C pressed (supposed to timeout after 5 secs)
Fixed by adding siginterrupt(signo, 1) after catch handler installed
2) Do not reinstall sighandler immediately after it is called,
BSD do it for us
|
|
|
|
|
|
| |
target.
Reviewed by: <many different folks>
Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
|
|
|
|
|
|
|
|
| |
'read' command to return an error if the user fails to supply any
input withink a given time period. The behaviour of this option is
similar to that of the like-named option in ksh93.
Reviewed by: joerg
|
|
|
|
|
|
| |
The -c flag is not documented in the sh(1) manapge.
Submitted by: adrian@virginia.edu
|
|
|
|
| |
for tools).
|
|
|
|
| |
pid_t when referring to process IDs.
|
|
|
|
| |
political issue.
|
|
|
|
|
|
|
|
| |
>Category: bin
>Synopsis: WEXITSTATUS() may return nagative value, which causes sh to generate bad $?
PR: 3780
Submitted by: sanewo@ba2.so-net.or.jp
|
| |
|
|
|
|
|
|
|
| |
using the WIF* macros in sys/wait.h.
PR: bin/3668
Submitted by: dholland@eecs.harvard.edu
|
|
|
|
|
|
| |
rule that shows the dependency of arith_lex.[co] on y.tab.h.
Suggested by: Bruce Evans <bde@zeta.org.au>
|
|
|
|
| |
not fail with an "don't know how to make y.tab.h" error.
|
| |
|
|
|
|
|
|
| |
depend on generated headers.
Reviewed by: Bruce Evans <bde@zeta.org.au>
|
|
|
|
|
|
| |
from being executed in non-interactive mode.
Suggested and Reviewed by: Brian Somers <brian@freebsd.org>
|
| |
|
| |
|
|
|
|
| |
Obtained from: NetBSD
|
| |
|
|
|
|
|
|
| |
keyword usage.
Obtained from: NetBSD
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
and remove an unnecessary reset.
Obtained from: NetBSD
|
|
|
|
|
|
| |
arithmetic.
Obtained from: NetBSD
|
|
|
|
|
|
| |
input files FD_CLOEXEC.
Obtained from: NetBSD
|
|
|
|
|
|
| |
show an error message.
Inspired by: NetBSD
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
|
|
|
| |
problem with 'make -j n' and no .depend file goes away.
I think Bruce mentioned this somewhere on one of the
mailing lists.
Obtained from: NetBSD
|