Made handle table a separate object.
Global handle table is no longer bound to a process.
Removed special handling of the initial process.
diff --git a/server/process.h b/server/process.h
index b9b44fc..5dbc1ee 100644
--- a/server/process.h
+++ b/server/process.h
@@ -15,8 +15,6 @@
/* process structures */
-struct handle_entry;
-
struct process
{
struct object obj; /* object header */
@@ -26,9 +24,7 @@
struct process *debug_next; /* per-debugger process list */
struct process *debug_prev;
struct thread *debugger; /* thread debugging this process */
- struct handle_entry *entries; /* handle entries */
- int handle_last; /* last valid handle */
- int handle_count; /* allocated table entries */
+ struct object *handles; /* handle entries */
int exit_code; /* process exit code */
int running_threads; /* number of threads running in this process */
struct timeval start_time; /* absolute time at process start */