-
Notifications
You must be signed in to change notification settings - Fork 4
Sync with main #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync with main #15
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,20 @@ | ||||||||||||||||||||||||||||
| name: "CLA" | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||||||||
| contents: read | ||||||||||||||||||||||||||||
| pull-requests: write | ||||||||||||||||||||||||||||
| actions: write | ||||||||||||||||||||||||||||
| statuses: write | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||
| issue_comment: | ||||||||||||||||||||||||||||
| types: [created] | ||||||||||||||||||||||||||||
| pull_request_target: | ||||||||||||||||||||||||||||
| types: [opened, closed, synchronize] | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||
| CLA-Lite: | ||||||||||||||||||||||||||||
| name: "Signature" | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| name: "Signature" | |
| name: "Signature" | |
| if: >- | |
| github.event_name == 'pull_request_target' || | |
| ( | |
| github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| ( | |
| github.event.comment.author_association == 'OWNER' || | |
| github.event.comment.author_association == 'MEMBER' || | |
| github.event.comment.author_association == 'COLLABORATOR' | |
| ) | |
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -209,20 +209,30 @@ static void PerfModuleInit() | |
| // using __attribute__((destructor)) | ||
| static void PerfModuleTerminate() | ||
| { | ||
| if(s_timer != NULL) { | ||
| s_timer->StopTask(); | ||
| } | ||
|
Comment on lines
+212
to
+214
|
||
|
|
||
| pid_t pID = getpid(); | ||
|
|
||
| LOG(eWarning, "RDK Performance process terminate %X\n", pID); | ||
|
|
||
| #if 0 // No need to print report on process exit | ||
| // Print report | ||
| RDKPerf_ReportProcess(pID); | ||
| #endif | ||
|
|
||
| // Remove prosess from list | ||
| RDKPerf_RemoveProcess(pID); | ||
|
|
||
| // Wait for timer thread cleanup | ||
| if(s_thread != NULL && s_thread->joinable()) { | ||
| LOG(eWarning, "Cleaning up timer thread\n"); | ||
| s_timer->StopTask(); | ||
| s_thread->join(); | ||
|
|
||
| delete s_thread; | ||
| delete s_timer; | ||
| if(s_timer != NULL) delete s_timer; | ||
|
|
||
|
Comment on lines
229
to
+235
|
||
| s_thread = NULL; | ||
| s_timer = NULL; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow requests broad
permissions(actions: write,statuses: write,pull-requests: write). Unless the reusable CLA workflow strictly requires all of these, reduce permissions to least privilege to limit blast radius (especially since this is also triggered byissue_comment/pull_request_target).