Remove old gVsior workaround
This commit is contained in:
parent
22dd288b07
commit
b1071b6b92
|
|
@ -379,13 +379,6 @@ impl Process {
|
|||
let mut session_table_mut = process_table::session_table_mut();
|
||||
let mut group_table_mut = process_table::group_table_mut();
|
||||
|
||||
if session_table_mut.contains_key(&self.pid) {
|
||||
// FIXME: According to the Linux implementation, this check should be removed, so we'll
|
||||
// return `EPERM` due to hitting the following check. However, we need to work around a
|
||||
// gVisor bug. The upstream gVisor has fixed the issue in:
|
||||
// <https://github.com/google/gvisor/commit/582f7bf6c0ccccaeb1215a232709df38d5d409f7>.
|
||||
return Ok(self.pid);
|
||||
}
|
||||
if group_table_mut.contains_key(&self.pid) {
|
||||
return_errno_with_message!(
|
||||
Errno::EPERM,
|
||||
|
|
|
|||
|
|
@ -138,11 +138,7 @@ END_TEST()
|
|||
|
||||
FN_TEST(setsid_session_leader)
|
||||
{
|
||||
// FIXME: We fail this test to work around a gVisor bug.
|
||||
// See comments in `Process::to_new_session` for details.
|
||||
#ifndef __asterinas__
|
||||
TEST_ERRNO(setsid(), EPERM);
|
||||
#endif
|
||||
}
|
||||
END_TEST()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue