Page MenuHomeFreeBSD

syslogd: Watch piped procdescs in kqueue
AbandonedPublic

Authored by jfree on Aug 9 2023, 12:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 9, 4:11 AM
Unknown Object (File)
Apr 11 2024, 12:45 AM
Unknown Object (File)
Apr 10 2024, 11:30 PM
Unknown Object (File)
Jan 19 2024, 6:08 AM
Unknown Object (File)
Dec 25 2023, 3:48 AM
Unknown Object (File)
Dec 23 2023, 2:29 AM
Unknown Object (File)
Dec 13 2023, 2:25 AM
Unknown Object (File)
Nov 27 2023, 10:19 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