Documentation ¶
Overview ¶
Package disabler contains a go routine that polls system variable at a regular interval and will kill xtcp if the stdout response is "1\n"
This go routine can be disabled via cli flag.
Please note that given xtcp should NOT be running as root, so this code does NOT carefully check the command arguments passed If running as root, this could be dangerous, but root is already dangerous enough, so we not making things worse
The channel is required to ensure that on startup xtcp blocks waiting for the first iteration to complete, otherwise polling can start before we've finished checking if we're disabled (eg spawning the new process is slower than starting the other go routines)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.