mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pwtest: is_debugger_attached(): rework test
Check if the "TracerPid" field in `/proc/self/status` is non-zero. This does not need libcap, and does not depend on capabilities, and it also works under qemu user emulation.
This commit is contained in:
parent
0d0108e954
commit
fcb318b9c5
3 changed files with 11 additions and 36 deletions
|
|
@ -381,9 +381,6 @@ libusb_dep = dependency('libusb-1.0', required : get_option('libusb'))
|
|||
summary({'libusb (Bluetooth quirks)': libusb_dep.found()}, bool_yn: true, section: 'Backend')
|
||||
cdata.set('HAVE_LIBUSB', libusb_dep.found())
|
||||
|
||||
cap_lib = dependency('libcap', required : false)
|
||||
cdata.set('HAVE_LIBCAP', cap_lib.found())
|
||||
|
||||
glib2_dep = dependency('glib-2.0', required : get_option('flatpak'))
|
||||
summary({'GLib-2.0 (Flatpak support)': glib2_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||
flatpak_support = glib2_dep.found()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue