| #
f7b56887
|
| 20-Jan-2026 |
Konstantin Belousov <kib@FreeBSD.org> |
Document pdrfork(2) and pdwait(2)
Reviewed by: asomers, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54592
|
| #
ee9895e1
|
| 19-Jun-2025 |
Kyle Evans <kevans@FreeBSD.org> |
kern: send parent a SIGCHLD when the debugger has detached
The practical scenario that leads to this is porch(1) spawning some utility and sending it a SIGSTOP as a debugging aide. The user then at
kern: send parent a SIGCHLD when the debugger has detached
The practical scenario that leads to this is porch(1) spawning some utility and sending it a SIGSTOP as a debugging aide. The user then attaches a debugger and walks through how some specific input is processed, then detaches to allow the script to continue. When ptrace is detached, the process resumes execution but the parent is never notified and may be stuck in wait(2) for it to continue or terminate.
Other platforms seem to re-suspend the process after the debugger is detached, but neither behavior seems unreasonable. Just notifying the parent that the child has resumed is a relatively low-risk departure from our current behavior and had apparently been considered in the past, based on pre-existing comments.
Move p_flag and p_xsig handling into childproc_continued(), as just sending the SIGCHLD here isn't really useful without P_CONTINUED set and the other caller already sets these up as well.
Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D50917
show more ...
|
| #
d0675399
|
| 27-Aug-2024 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
capsicum: allow subset of wait4(2) functionality
The usual way of handling process exit exit in capsicum(4) mode is by using process descriptors (pdfork(2)) instead of the traditional fork(2)/wait4(
capsicum: allow subset of wait4(2) functionality
The usual way of handling process exit exit in capsicum(4) mode is by using process descriptors (pdfork(2)) instead of the traditional fork(2)/wait4(2) API. But most apps hadn't been converted this way, and many cannot because the wait is hidden behind a library APIs that revolve around PID numbers and not descriptors; GLib's g_spawn_check_wait_status(3) is one example.
Thus, provide backwards compatibility by allowing the wait(2) family of functions in Capsicum mode, except for child processes created by pdfork(2).
Reviewed by: brooks, oshogbo Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D44372
show more ...
|
| #
8269e767
|
| 14-Nov-2023 |
Brooks Davis <brooks@FreeBSD.org> |
libsys: relocate implementations and manpages
Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths
libsys: relocate implementations and manpages
Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home.
Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
show more ...
|
| #
dc36d6f9
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
lib: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
lib: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
b2c76c41
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line nroff pattern
Remove /^\.\\"\s*\$FreeBSD\$$\n/
|
| #
b8ec0ce5
|
| 30-Jun-2022 |
Mark Johnston <markj@FreeBSD.org> |
wait.2: Remove sys/types.h from the list of required headers
wait.h is self-contained.
MFC after: 1 week Sponsored by: The FreeBSD Foundation
|
| #
a60c863c
|
| 11-Aug-2019 |
Konstantin Belousov <kib@FreeBSD.org> |
wait(2): clarify reparenting of children of the exiting process.
Point to the existence of reapers and mention that init is the default reaper.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
| #
cd6a6b77
|
| 11-Aug-2019 |
Konstantin Belousov <kib@FreeBSD.org> |
wait(2): split long line by using .Fo/.Fa instead of .Ft.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
| #
b8e4cdda
|
| 24-Oct-2018 |
Mark Johnston <markj@FreeBSD.org> |
Clarify slightly the interaction between wait*() and pdfork().
There are multiple ways to wait for any child process to return a status (e.g., waitpid(-1, ...), waitid(P_ALL, ...)), so don't be so s
Clarify slightly the interaction between wait*() and pdfork().
There are multiple ways to wait for any child process to return a status (e.g., waitpid(-1, ...), waitid(P_ALL, ...)), so don't be so specific.
MFC after: 1 week Sponsored by: The FreeBSD Foundation
show more ...
|
| #
aeb71118
|
| 01-Dec-2017 |
Warner Losh <imp@FreeBSD.org> |
Mark all the system calls that were in 1st Edition Unix as such in the HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed.
Obtained from: http://www.tu
Mark all the system calls that were in 1st Edition Unix as such in the HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed.
Obtained from: http://www.tuhs.org/cgi-bin/utree.pl?file=V1/man/man2
show more ...
|
| #
a13136cd
|
| 17-Jun-2017 |
Conrad Meyer <cem@FreeBSD.org> |
pdwait4(2): Remove documentation of vaporware
This syscall has never existed and is not at risk of existing any time soon. Remove documentation referencing it, which has been wrong since FreeBSD 9.
pdwait4(2): Remove documentation of vaporware
This syscall has never existed and is not at risk of existing any time soon. Remove documentation referencing it, which has been wrong since FreeBSD 9.
Reported by: allanjude@
show more ...
|
| #
fbbd9655
|
| 28-Feb-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|
| #
eaf7c645
|
| 01-Jun-2016 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
Document behavior of wait introduced in the r286698.
Suggested by: glebius Reviewed by: wblock, bjk Differential Revision: https://reviews.freebsd.org/D6080
|
| #
32223c1b
|
| 30-Apr-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
libc: spelling fixes.
Mostly on comments.
|
| #
b4490c6e
|
| 18-Jul-2015 |
Konstantin Belousov <kib@FreeBSD.org> |
The si_status field of the siginfo_t, provided by the waitid(2) and SIGCHLD signal, should keep full 32 bits of the status passed to the _exit(2).
Split the combined p_xstat of the struct proc into
The si_status field of the siginfo_t, provided by the waitid(2) and SIGCHLD signal, should keep full 32 bits of the status passed to the _exit(2).
Split the combined p_xstat of the struct proc into the separate exit status p_xexit for normal process exit, and signalled termination information p_xsig. Kernel-visible macro KW_EXITCODE() reconstructs old p_xstat from p_xexit and p_xsig. p_xexit contains complete status and copied out into si_status.
Requested by: Joerg Schilling Reviewed by: jilles (previous version), pho Tested by: pho Sponsored by: The FreeBSD Foundation
show more ...
|
| #
2727e974
|
| 06-Dec-2013 |
Joel Dahl <joel@FreeBSD.org> |
mdoc: remove EOL whitespace.
|
| #
d4e3c0a2
|
| 03-Dec-2013 |
John Baldwin <jhb@FreeBSD.org> |
Various updates and tweaks to the wait(2) manpage.
PR: docs/183904 Submitted by: Michael Galassi <michaelgalassi@gmail.com> Reviewed by: kib, wblock (earlier version)
|
| #
09466daf
|
| 01-Dec-2013 |
Jilles Tjoelker <jilles@FreeBSD.org> |
waitid(2): Do not tell userland programmers to include <sys/signal.h>.
Userland should get these definitions by including <signal.h>.
|
| #
550ac4a8
|
| 07-Sep-2013 |
Jilles Tjoelker <jilles@FreeBSD.org> |
wait(2): Add some possible caveats to standards section.
|
| #
0b92b540
|
| 13-Nov-2012 |
Konstantin Belousov <kib@FreeBSD.org> |
Document wait6() and waitid().
PR: standards/170346 Submitted by: "Jukka A. Ukkonen" <jau@iki.fi> MFC after: 1 month
|
| #
9baeec29
|
| 05-Sep-2012 |
John Baldwin <jhb@FreeBSD.org> |
When WIFCONTINUED was added, the number of "first" macros grew from three to four.
MFC after: 1 week
|
| #
a57971c6
|
| 18-Jun-2011 |
David E. O'Brien <obrien@FreeBSD.org> |
Note how wait(3) is implemented.
|
| #
bb30676c
|
| 20-Jan-2010 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
The waitpid(2) function needs neither sys/time.h nor sys/resource.h.
|
| #
cbc15844
|
| 26-Aug-2008 |
Konstantin Belousov <kib@FreeBSD.org> |
Implement WNOWAIT flag for wait4(2). It specifies that process whose status is returned shall be kept in the waitable state. Add WSTOPPED as an alias for WUNTRACED.
Submitted by: Jukka Ukkonen <jau
Implement WNOWAIT flag for wait4(2). It specifies that process whose status is returned shall be kept in the waitable state. Add WSTOPPED as an alias for WUNTRACED.
Submitted by: Jukka Ukkonen <jau at iki fi> PR: standards/116221 MFC after: 2 weeks
show more ...
|