aristanetworks / bst

A one-stop shop for process isolation
MIT License
101 stars 9 forks source link

cgroup,cleaner: report errors in syslog #90

Closed Snaipe closed 9 months ago

Snaipe commented 9 months ago

The native cgroup cleaner used to report errors on stderr, but at that point the parent bst process might have already died, feeding the error message asynchronously on the pty, or worse, the pipe stderr is connected to might have already been closed.

To avoid losing precious debugging data, log any errors in the cgroup cleaner process to syslog instead.