Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
OS-Contest-2021-Kernel-Final-Stage2
iPear-syscore
Commits
05bd1dcb
Commit
05bd1dcb
authored
3 years ago
by
Waitti
Browse files
Options
Download
Patches
Plain Diff
feat: annotated wstatus
Former-commit-id:
b2ae0d0d
parent
325177d7
main
check_memory_overflow
debug_test
feature/prepare-user-page-table
feature/simplify-heap
fix/elf_pageful
fix/fs
fix/swap-page-table
optimize
submit_test
time_test
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel/scheduler.cpp
+3
-3
src/kernel/scheduler.cpp
with
3 additions
and
3 deletions
+3
-3
src/kernel/scheduler.cpp
+
3
−
3
View file @
05bd1dcb
...
...
@@ -347,9 +347,9 @@ int wait(int* wstatus){
if
(
!
running
->
signal_list
.
is_empty
()){
// return immediately
int
ret
=
running
->
signal_list
.
start
->
data
.
first
;
if
(
wstatus
){
*
wstatus
=
running
->
signal_list
.
start
->
data
.
second
<<
8
;
}
//
if(wstatus){
//
*wstatus=running->signal_list.start->data.second<<8;
//
}
running
->
signal_list
.
pop_front
();
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets