Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
relibc
Commits
e90fa3e3
Verified
Commit
e90fa3e3
authored
Dec 01, 2021
by
Jeremy Soller
Browse files
Do not try to open traceme on special PIDs
parent
c51aec1a
Pipeline
#9835
failed with stages
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/platform/redox/ptrace.rs
View file @
e90fa3e3
...
...
@@ -52,6 +52,8 @@ pub fn init_state() -> &'static State {
}
}
pub
fn
is_traceme
(
pid
:
pid_t
)
->
bool
{
// Skip special PIDs (<=0)
if
pid
<=
0
{
return
false
;
}
File
::
open
(
&
CString
::
new
(
format!
(
"chan:ptrace-relibc/{}/traceme"
,
pid
))
.unwrap
(),
fcntl
::
O_PATH
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment