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
Tools/NetTest - Add TCP retransmit test
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
system.c
diff --git
a/KernelLand/Kernel/system.c
b/KernelLand/Kernel/system.c
index
e09d469
..
748c744
100644
(file)
--- a/
KernelLand/Kernel/system.c
+++ b/
KernelLand/Kernel/system.c
@@
-58,6
+58,15
@@
void System_Init(char *CommandLine)
// Set the debug to be echoed to the terminal
Log_Log("Config", "Kernel now echoes to VT7 (Ctrl-Alt-F8)");
Debug_SetKTerminal("/Devices/pts/vt7");
// Set the debug to be echoed to the terminal
Log_Log("Config", "Kernel now echoes to VT7 (Ctrl-Alt-F8)");
Debug_SetKTerminal("/Devices/pts/vt7");
+
+ // Run a thread to reap unowned threads
+ for( ;; )
+ {
+ int status;
+ // TODO: Inform init when a thread dies
+ int tid = Threads_WaitTID(-1, &status);
+ Log_Debug("Thread0", "Thread %i exited with status %i", tid, status);
+ }
}
/**
}
/**
@@
-78,7
+87,10
@@
void System_ParseCommandLine(char *ArgString)
// Eat Whitespace
while(*str == ' ') str++;
// Check for the end of the string
// Eat Whitespace
while(*str == ' ') str++;
// Check for the end of the string
- if(*str == '\0') { argc--; break;}
+ if(*str == '\0') {
+ argc--;
+ break;
+ }
argv[argc] = str;
if(*str == '"') {
while(*str && !(*str == '"' && str[-1] != '\\'))
argv[argc] = str;
if(*str == '"') {
while(*str && !(*str == '"' && str[-1] != '\\'))
UCC
git Repository :: git.ucc.asn.au