server: Do not store unix_pid in process_snapshot struct.
Sebastian Lackner
sebastian at fds-team.de
Wed Sep 7 05:51:39 CDT 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
At the moment its not used anywhere and snapshot iterator functions return the
current unix_pid. Error handling on the client side (iphlpapi) could be a bit
better, but using the cached value there would not change anything because its
still not guaranteed to be != -1.
server/process.c | 1 -
server/process.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/server/process.c b/server/process.c
index 48ada99..2f2d1ad 100644
--- a/server/process.c
+++ b/server/process.c
@@ -1067,7 +1067,6 @@ struct process_snapshot *process_snap( int *count )
ptr->count = process->obj.refcount;
ptr->priority = process->priority;
ptr->handles = get_handle_table_count(process);
- ptr->unix_pid = process->unix_pid;
grab_object( process );
ptr++;
}
diff --git a/server/process.h b/server/process.h
index eaa4adb..4e6de69 100644
--- a/server/process.h
+++ b/server/process.h
@@ -104,7 +104,6 @@ struct process_snapshot
int threads; /* number of threads */
int priority; /* priority class */
int handles; /* number of handles */
- int unix_pid; /* Unix pid */
};
#define CPU_FLAG(cpu) (1 << (cpu))
--
2.9.0
More information about the wine-patches
mailing list