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
kernel
Commits
fd97fa80
Verified
Commit
fd97fa80
authored
Mar 13, 2021
by
4lDO2
🖖
Browse files
Move `pid` back to inner scope in exit() handler.
parent
a771ca69
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/syscall/process.rs
View file @
fd97fa80
...
...
@@ -1128,8 +1128,6 @@ pub fn fexec(fd: FileHandle, arg_ptrs: &[[usize; 2]], var_ptrs: &[[usize; 2]]) -
pub
fn
exit
(
status
:
usize
)
->
!
{
ptrace
::
breakpoint_callback
(
PTRACE_STOP_EXIT
,
Some
(
ptrace_event!
(
PTRACE_STOP_EXIT
,
status
)));
let
pid
;
{
let
context_lock
=
{
let
contexts
=
context
::
contexts
();
...
...
@@ -1138,7 +1136,7 @@ pub fn exit(status: usize) -> ! {
};
let
mut
close_files
=
Vec
::
new
();
pid
=
{
let
pid
=
{
let
mut
context
=
context_lock
.write
();
{
let
mut
lock
=
context
.files
.write
();
...
...
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