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