git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CLIShell - PTY signal support (and kernel fixes)
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
threads.c
diff --git
a/KernelLand/Kernel/threads.c
b/KernelLand/Kernel/threads.c
index
12613a2
..
73a2b58
100644
(file)
--- a/
KernelLand/Kernel/threads.c
+++ b/
KernelLand/Kernel/threads.c
@@
-355,7
+355,7
@@
tThread *Threads_CloneTCB(Uint Flags)
if(Flags & CLONE_VM) {
tProcess *newproc, *oldproc;
oldproc = cur->Process;
if(Flags & CLONE_VM) {
tProcess *newproc, *oldproc;
oldproc = cur->Process;
- new->Process =
malloc( sizeof(struct sProcess)
);
+ new->Process =
calloc( sizeof(struct sProcess), 1
);
newproc = new->Process;
newproc->PID = new->TID;
if( Flags & CLONE_PGID )
newproc = new->Process;
newproc->PID = new->TID;
if( Flags & CLONE_PGID )
UCC
git Repository :: git.ucc.asn.au