History log of /openbsd/bin/ksh/jobs.c (Results 1 – 25 of 62)
Revision Date Author Comments
# cbb0b321 07-Jul-2020 jca <jca@openbsd.org>

Add support for set -o pipefail

With the pipefail option set, the exit status of a pipeline is 0 if all
commands succeed, or the return status of the rightmost command that
fails. This can help str

Add support for set -o pipefail

With the pipefail option set, the exit status of a pipeline is 0 if all
commands succeed, or the return status of the rightmost command that
fails. This can help stronger error checking, but is not a silver
bullet. For example, commands will exhibit a non-zero exit status if
they're killed by a SIGPIPE when writing to a pipe. Yet pipefail was
considered useful enough to be included in the next POSIX standard.

This implementation remembers the value of the pipefail option when
a pipeline is started, as described as option 1) in

https://www.austingroupbugs.net/view.php?id=789#c4102

Requested by ajacoutot@, ok millert@

show more ...


# 3aaa63eb 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# 97445c82 15-Mar-2018 anton <anton@openbsd.org>

Favor usage of __func__ in warning/error messages. Some of them referred to the
wrong function and fix the rest for consistency.
Diff from Michael W. Bombardieri with some cosmetic cleanup applied.

Favor usage of __func__ in warning/error messages. Some of them referred to the
wrong function and fix the rest for consistency.
Diff from Michael W. Bombardieri with some cosmetic cleanup applied.

ok benno@ tb@

show more ...


# 6c72b531 16-Jan-2018 jca <jca@openbsd.org>

Introduce internal_warningf() and mark internal_errorf() as noreturn

This helps tools like scan-build, and follows the example of warningf()
and errorf(). ok anton@


# 83457235 08-Jan-2018 benno <benno@openbsd.org>

update comments that were left behind in the recent unifdef JOB commit
from Klemens Nanni, thanks.


# c9653cd6 05-Jan-2018 jca <jca@openbsd.org>

unifdef JOBS support

Prompted by a mail from Klemens Nanni, who also had the same diff.
ok deraadt@ millert@


# 6d67984d 05-Jan-2018 tb <tb@openbsd.org>

Typos in comments: 'it' -> 'if' and 'noityf' -> 'notify'.

from Klemens Nanni


# 8570e725 17-Mar-2016 mmcc <mmcc@openbsd.org>

remove some ARGSUSED


# 5ae5b57e 30-Dec-2015 tedu <tedu@openbsd.org>

rename global "e" to genv to avoid accidental shadowing and aliasing.
ok millert nicm tb


# 4a010e0c 14-Dec-2015 tb <tb@openbsd.org>

Move system headers from sh.h to those files that actually need them.

ok mmcc@ a while ago


# 06049e53 12-Nov-2015 deraadt <deraadt@openbsd.org>

use symbolics for flags to open
from Ricardo Mestre


# bbf05626 12-Nov-2015 mmcc <mmcc@openbsd.org>

Use isdigit() instead of ksh's homebrewed alternative.

ok nicm@. Also discussed with millert@ and guenther@.


# 56018212 19-Oct-2015 mmcc <mmcc@openbsd.org>

Move string.h include from sh.h to the files that use it.

ok nicm@


# dbfe7957 19-Oct-2015 mmcc <mmcc@openbsd.org>

Move limits.h include from sh.h to the files that actually need it. No
binary change.

ok nicm@


# b608f594 19-Oct-2015 mmcc <mmcc@openbsd.org>

Apply style(9) to header includes.

ok nicm@


# 30f9591a 17-Sep-2015 nicm <nicm@openbsd.org>

More (foo *)0 -> NULL, from Michael McConville. No binary change.


# 8c046d24 17-Sep-2015 nicm <nicm@openbsd.org>

Remove unnecessary casts, from Michael McConville. No binary change.


# 355ffa75 15-Sep-2015 tedu <tedu@openbsd.org>

correct spelling of NULL from (char *)0. from Michael McConville.
ok md5


# 0f09b4e4 15-Sep-2015 tedu <tedu@openbsd.org>

stop abusing null (the variable) for an empty string in output formats.
from Michael McConville
ok nicm


# 96085982 10-Sep-2015 nicm <nicm@openbsd.org>

Replace newline and space defines by "\n" and " " directly, from Michael
McConville. ok millert


# c3ad38e4 10-Sep-2015 nicm <nicm@openbsd.org>

Remove INT32 define and just use int, from Martijn van Duren and Michael
McConville. ok deraadt


# a47b6461 18-Apr-2015 deraadt <deraadt@openbsd.org>

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert


# 86d15645 04-Sep-2013 millert <millert@openbsd.org>

Add a proper suspend builtin that saves/restores the tty and pgrp
as needed instead of an alias that just sends SIGSTOP. Login shells
may be suspended if they are not running in an orphan process gr

Add a proper suspend builtin that saves/restores the tty and pgrp
as needed instead of an alias that just sends SIGSTOP. Login shells
may be suspended if they are not running in an orphan process group.
OK guenther@ jmc@

show more ...


# affb2344 13-Dec-2009 deraadt <deraadt@openbsd.org>

remember to restore errno (ie. stop someone from making a mistake later)
ok guenther


# ae4fe211 12-Dec-2009 deraadt <deraadt@openbsd.org>

a dangling do / while that was very very ugly


123