Skip to content

Commit

Permalink
fix(libs/processcontext): fix process thread issue (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
araujof authored Apr 12, 2024
2 parents 9fb5ddf + 90be78e commit b692bfa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
## [Unreleased]

## [0.6.3] - 2024-04-07

### Fixed

- Fix main thread issue

## [0.6.2] - 2024-03-04

### Fixed
Expand Down Expand Up @@ -295,7 +301,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

- First release candidate of SysFlow Collector.

[Unreleased]: https://github.com/sysflow-telemetry/sf-collector/compare/0.6.2...HEAD
[Unreleased]: https://github.com/sysflow-telemetry/sf-collector/compare/0.6.3...HEAD
[0.6.3]: https://github.com/sysflow-telemetry/sf-collector/compare/0.6.2...0.6.3
[0.6.2]: https://github.com/sysflow-telemetry/sf-collector/compare/0.6.1...0.6.2
[0.6.1]: https://github.com/sysflow-telemetry/sf-collector/compare/0.6.0...0.6.1
[0.6.0]: https://github.com/sysflow-telemetry/sf-collector/compare/0.5.1...0.6.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Supported tags and respective `Dockerfile` links

- [`0.6.2`, `latest`](https://github.com/sysflow-telemetry/sf-collector/blob/0.6.2/Dockerfile), [`edge`](https://github.com/sysflow-telemetry/sf-collector/blob/master/Dockerfile), [`dev`](https://github.com/sysflow-telemetry/sf-collector/blob/dev/Dockerfile)
- [`0.6.3`, `latest`](https://github.com/sysflow-telemetry/sf-collector/blob/0.6.3/Dockerfile), [`edge`](https://github.com/sysflow-telemetry/sf-collector/blob/master/Dockerfile), [`dev`](https://github.com/sysflow-telemetry/sf-collector/blob/dev/Dockerfile)

# Quick reference

Expand All @@ -26,7 +26,7 @@
[docker hub](https://hub.docker.com/u/sysflowtelemetry) | [GHCR](https://github.com/orgs/sysflow-telemetry/packages)

- **Binary packages**:
[deb](https://github.com/sysflow-telemetry/sf-collector/releases/tag/0.6.2/sfcollector-0.6.2-x86_64.deb) | [rpm](https://github.com/sysflow-telemetry/sf-collector/releases/tag/0.6.2/sfcollector-0.6.2-x86_64.rpm) | [tgz](https://github.com/sysflow-telemetry/sf-collector/releases/tag/0.6.2/sfcollector-0.6.2-x86_64.tar.gz)
[deb](https://github.com/sysflow-telemetry/sf-collector/releases/tag/0.6.3/sfcollector-0.6.3-x86_64.deb) | [rpm](https://github.com/sysflow-telemetry/sf-collector/releases/tag/0.6.3/sfcollector-0.6.3-x86_64.rpm) | [tgz](https://github.com/sysflow-telemetry/sf-collector/releases/tag/0.6.3/sfcollector-0.6.3-x86_64.tar.gz)

# What is SysFlow?

Expand Down
2 changes: 1 addition & 1 deletion makefile.manifest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

SYSFLOW_VERSION?=0.6.2
SYSFLOW_VERSION?=0.6.3
SYSFLOW_BUILD_NUMBER?=1
FALCO_VERSION=0.36.2
FALCO_LIBS_VERSION=0.13.4
Expand Down
2 changes: 1 addition & 1 deletion src/libs/processcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ ProcessObj *ProcessContext::getProcess(sinsp_evt *ev, SFObjectState state,
mt = mt->get_parent_thread();

while (mt != nullptr && mt->m_tid != -1) {
if (mt->is_main_thread()) {
if (!mt->is_main_thread()) {
sinsp_threadinfo *tmp = mt->get_main_thread();
if (tmp != nullptr) {
mt = tmp;
Expand Down

0 comments on commit b692bfa

Please sign in to comment.