agent: Have a thread monitoring parent PID and homedir
Testing, WishlistPublic

Assigned To
Authored By
• gniibe
Aug 30 2023, 7:07 AM

Description

Like check_own_socket_thread, we can move the functionality of monitoring parent and homedir into a thread (from handle_tick).
By doing so, it will be:

  • possible: change the interval value at compile time independent to TIMERTICK_INTERVAL
  • improvement: the need for check (thus, the need to spawn the thread) can be determined once
  • possible: handle_tick can be removed and agent_cache_housekeeping can be improved to support exact timeout

Event Timeline

• gniibe changed the task status from Open to Testing.Aug 30 2023, 7:17 AM
• gniibe changed the status of subtask T6682: agent: agent_kick_the_loop function to unblock the select(2) from Open to Testing.
• gniibe updated the task description. (Show Details)