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)
Fri, Jan 24, 4:58 PM
Unknown Object (File)
Sat, Jan 18, 9:37 PM
Unknown Object (File)
Fri, Jan 17, 11:17 PM
Unknown Object (File)
Tue, Jan 14, 2:58 PM
Unknown Object (File)
Dec 19 2024, 10:23 AM
Unknown Object (File)
Oct 21 2024, 5:12 AM
Unknown Object (File)
Oct 21 2024, 4:06 AM
Unknown Object (File)
Oct 1 2024, 8:57 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