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)
Feb 8 2025, 5:51 AM
Unknown Object (File)
Feb 5 2025, 7:49 AM
Unknown Object (File)
Jan 27 2025, 2:19 PM
Unknown Object (File)
Jan 24 2025, 4:58 PM
Unknown Object (File)
Jan 18 2025, 9:37 PM
Unknown Object (File)
Jan 17 2025, 11:17 PM
Unknown Object (File)
Jan 14 2025, 2:58 PM
Unknown Object (File)
Dec 19 2024, 10:23 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