Skip to content

RDKEMW-18410: Xconf thread should wait Indefinitely for the NTP indicator#372

Merged
shibu-kv merged 6 commits into
developfrom
topic/RDKEMW-18410
May 21, 2026
Merged

RDKEMW-18410: Xconf thread should wait Indefinitely for the NTP indicator#372
shibu-kv merged 6 commits into
developfrom
topic/RDKEMW-18410

Conversation

@yogeswaransky
Copy link
Copy Markdown
Contributor

No description provided.

Yogeswaran K added 3 commits May 19, 2026 14:34
…ator

Signed-off-by: Yogeswaran K <yogeswaran_k@comcast.com>
…ator

Signed-off-by: Yogeswaran K <yogeswaran_k@comcast.com>
…ator

Signed-off-by: Yogeswaran K <yogeswaran_k@comcast.com>
@yogeswaransky yogeswaransky requested a review from a team as a code owner May 19, 2026 14:54
Copilot AI review requested due to automatic review settings May 19, 2026 14:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the Xconf client's NTP sync wait behavior from a bounded 30-minute timeout to indefinite waiting once the NTP sync directory exists. The 30-minute timeout is now applied only to waiting for the NTP_SYNC_DIR to appear at startup (covering platforms where systimemgr may be absent). The previous pollForNTPSyncFallback function is repurposed/replaced by waitForNTPSyncDir, which only watches for the directory's appearance and then hands off to inotify for indefinite file-creation monitoring.

Changes:

  • Replaced NTP_SYNC_WAIT_TIMEOUT_SEC with NTP_SYNC_DIR_WAIT_TIMEOUT_SEC (scoped to directory appearance only).
  • Replaced pollForNTPSyncFallback with waitForNTPSyncDir; on success it retries inotify_add_watch rather than polling for the file directly.
  • Removed the deadline check from the main waitForNTPSync inotify loop so it now waits indefinitely, exiting only on shutdown or indicator detection.

@yogeswaransky yogeswaransky changed the base branch from develop to support/1.9.2 May 19, 2026 17:45
@yogeswaransky yogeswaransky changed the base branch from support/1.9.2 to develop May 19, 2026 17:46
…ator

Signed-off-by: Yogeswaran K <yogeswaransky@gmail.com>
…ator

Signed-off-by: Yogeswaran K <yogeswaransky@gmail.com>
Copilot AI review requested due to automatic review settings May 19, 2026 18:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread source/xconf-client/xconfclient.c Outdated
Comment thread source/xconf-client/xconfclient.c Outdated
Comment thread source/xconf-client/xconfclient.c Outdated
…ator

Signed-off-by: Yogeswaran K <yogeswaransky@gmail.com>
@shibu-kv shibu-kv merged commit 140e83a into develop May 21, 2026
19 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants