mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
Implement process file mode creation mask
This commit is contained in:
parent
a3b3ab76a7
commit
473821bfa8
@ -465,6 +465,8 @@ namespace Tasking
|
||||
|
||||
/* Other */
|
||||
Signal Signals;
|
||||
mode_t FileCreationMask = S_IRUSR | S_IWUSR | S_IRGRP |
|
||||
S_IWGRP | S_IROTH | S_IWOTH;
|
||||
|
||||
/* Threads & Children */
|
||||
std::list<TCB *> Threads;
|
||||
|
@ -1158,6 +1158,7 @@ static pid_t linux_fork(SysFrm *sf)
|
||||
NewProcess->FileDescriptors->Fork(Parent->FileDescriptors);
|
||||
NewProcess->Executable = Parent->Executable;
|
||||
NewProcess->CurrentWorkingDirectory = Parent->CurrentWorkingDirectory;
|
||||
NewProcess->FileCreationMask = Parent->FileCreationMask;
|
||||
|
||||
TCB *NewThread =
|
||||
TaskManager->CreateThread(NewProcess,
|
||||
|
Loading…
x
Reference in New Issue
Block a user