Page MenuHomeFreeBSD

syslogd: Watch piped procdescs in kqueue
AbandonedPublic

Authored by jfree on Aug 9 2023, 12:03 AM.
Tags
None
Referenced Files
F132228131: D41389.diff
Wed, Oct 15, 12:04 AM
Unknown Object (File)
Sun, Sep 21, 5:58 PM
Unknown Object (File)
Jul 27 2025, 5:42 AM
Unknown Object (File)
Jul 13 2025, 12:17 PM
Unknown Object (File)
Jul 6 2025, 7:00 PM
Unknown Object (File)
Jul 6 2025, 4:10 AM
Unknown Object (File)
Jun 26 2025, 2:04 PM
Unknown Object (File)
Jun 24 2025, 9:12 PM
Subscribers

Details

Reviewers
emaste
markj
Summary
When a piped command is launched, register its process descriptor with
the kqueue.

The main kevent() loop is already setup to reap processes that trigger
the EVFILT_PROCDESC filter

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Just a generate comment: when casper starts handling the popen(), syslogd will no longer be able to use waitpid() to reap the process, since it won't be the parent process.

This revision is now accepted and ready to land.Aug 9 2023, 7:57 PM