Fix typo in pwait.c introduced in 5bdce6ff546eReported by: kevans
Remove deadlock in rc caused by pwait waiting for itself.The following situation can trigger the deadlock:1) Long time ago a_service was started through rc.d2) We want to restart a_service and is
Remove deadlock in rc caused by pwait waiting for itself.The following situation can trigger the deadlock:1) Long time ago a_service was started through rc.d2) We want to restart a_service and issue service a_service restart3) rc.subr reads current process PID (via file or process), sends TERM signal and runs pwait with PID harvested4) a_service process dies very quickly so it's PID becomes available. It is possible that while original process was running, PID counter overflowed and pwait got assigned a_service's PID.This patch ignores pid(s) to wait that are equal to pwait PID.Reported by: Dan McGregor, Boris LytochkinSubmitted by: Boris Lytochkin <lytboris at gmail.com>Reviewed By: 0mpMFC after: 2 weeksPR: 218598Differential Revision: https://reviews.freebsd.org/D28240
show more ...
pwait(1): Add EXAMPLES section to man page* Add small EXAMPLES section to the man page showing the different flags and exit codes.* Complete description for -v flag.Approved by: manpages (bcr
pwait(1): Add EXAMPLES section to man page* Add small EXAMPLES section to the man page showing the different flags and exit codes.* Complete description for -v flag.Approved by: manpages (bcr@)
Remove unused include.MFC after: 2 weeks
Restore previous usage presentation (without "pwait: " prefix).Pointed out by: jilles
Style changes, mostly usage of braces around single line statements -it is safer and allowed for some time now by style(9).Sponsored by: Fudo Security
Implement tests for the newly added -o flag.Sponsored by: Fudo Security
Implement -o flag which tells pwait(1) to exit if any of the given processeshas terminated.Sponsored by: Fudo Security
Don't setup a timeout if we are exiting.Sponsored by: Fudo Security
Check for duplicated PID without using additional variable.Sponsored by: Fudo Security
- Be consistent with using sysexits(3) codes.- Turn fprintf()+exit() into errx().Sponsored by: Fudo Security
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Add HAS_TESTS to all Makefiles that use the SUBDIR.${MK_TESTS}+= tests idiom
Rename some tests to end in _test.Requested by: ngieMFC after: 2 weeksX-MFC-With: r314886
Remove unneeded -x from tests.Reported by: ngieMFC after: 2 weeksX-MFC-With: r314886
pwait: Add a -t flag to specify a timeout before exiting, and tests.The exit status will be 124, as the timeout(1) utility uses.Reviewed by: jillesMFC after: 2 weeksDifferential Revision: https
pwait: Add a -t flag to specify a timeout before exiting, and tests.The exit status will be 124, as the timeout(1) utility uses.Reviewed by: jillesMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D9697
Explicitly add unmarked bin/ binaries to the runtime package.Note: tcsh(1) has a MK_TCSH=no test, so this should be a separatepackage, which requires pre-install/post-install scripts, to beadded l
Explicitly add unmarked bin/ binaries to the runtime package.Note: tcsh(1) has a MK_TCSH=no test, so this should be a separatepackage, which requires pre-install/post-install scripts, to beadded later.Sponsored by: The FreeBSD Foundation
Fix typo when deregistering the VLAN unconfig event handlerSubmitted by: Masao Uebayashi <[email protected]>MFC after: 3 days
dirdeps.mk now sets DEP_RELDIR
Updated dependencies
Audit sockaddr argument for bind(2), connect(2), accept(2), sendto(2) andrecvfrom(2) syscalls.Sponsored by: The FreeBSD Foundation
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Requested by: Simon Gerraty <[email protected]>
12