Page MenuHomeFreeBSD

syslogd: Watch piped procdescs in kqueue
AbandonedPublic

Authored by jfree on Aug 9 2023, 12:03 AM.
Tags
None
Referenced Files
F164368002: D41389.diff
Fri, Jul 31, 5:51 AM
Unknown Object (File)
Wed, Jul 22, 2:27 PM
Unknown Object (File)
Mon, Jul 13, 5:46 PM
Unknown Object (File)
Jun 29 2026, 3:04 PM
Unknown Object (File)
Jun 29 2026, 3:04 PM
Unknown Object (File)
Jun 25 2026, 2:52 AM
Unknown Object (File)
Jun 24 2026, 7:27 PM
Unknown Object (File)
Jun 22 2026, 1:13 AM
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