Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.cpp
Context not available. | |||||
55 | #if HAVE_SYS_PRCTL_H | 55 | #if HAVE_SYS_PRCTL_H | ||
---|---|---|---|---|---|
56 | #include <sys/prctl.h> | 56 | #include <sys/prctl.h> | ||
57 | #endif | 57 | #endif | ||
58 | #if HAVE_SYS_PROCCTL_H | ||||
59 | #include <unistd.h> | ||||
60 | #include <sys/procctl.h> | ||||
61 | #endif | ||||
58 | 62 | | |||
59 | #include <iostream> | 63 | #include <iostream> | ||
60 | #include <iomanip> | 64 | #include <iomanip> | ||
Context not available. | |||||
410 | // disable ptrace in kwin_wayland | 414 | // disable ptrace in kwin_wayland | ||
411 | prctl(PR_SET_DUMPABLE, 0); | 415 | prctl(PR_SET_DUMPABLE, 0); | ||
412 | #endif | 416 | #endif | ||
417 | #if HAVE_PROC_TRACE_CTL | ||||
418 | // FreeBSD's rudimentary procfs does not support /proc/<pid>/exe | ||||
419 | // We could use the P_TRACED flag of the process to find out | ||||
420 | // if the process is being debugged ond FreeBSD. | ||||
421 | int mode = PROC_TRACE_CTL_DISABLE; | ||||
422 | procctl(P_PID, getpid(), PROC_TRACE_CTL, &mode); | ||||
423 | #endif | ||||
424 | | ||||
413 | } | 425 | } | ||
414 | 426 | | |||
415 | } // namespace | 427 | } // namespace | ||
Context not available. |