String returned from sysctl() can't be longer than COMMLEN (19) symbols, so it returns bogus data for processes with long file name.
Use kvm and procstat librarires to obtain correct name and only use sysctl as a fallback.
Details
Details
- Reviewers
tcberner - Group Reviewers
kde - Commits
- rP472242: devel/qt5-core: Add a patch that fixes QLockFilePrivate::processNameByPid()…
make check for qlockfile passes.
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 17031 Build 16898: arc lint + arc unit
Event Timeline
devel/qt5-core/files/patch-src_corelib_io_qlockfile__unix.cpp | ||
---|---|---|
12 | Isn't it easier to just add a freebsd condition in the else block below? } else { SOURCES += ... freebsd { LIBS += lkvm -lprocstat } } | |
35 | Style: the * needs to be next to kp (this applies to the other pointer declarations below too). | |
51 | Style: this should've been part of the previous line. | |
69 | Same here. |
Comment Actions
The patch file (148 lines) contains the same 74 line patch twice, thus the build doesn't even start because of "patch failed".