[1/4] server: Include the Unix pid in the snapshot_next_process reply.

Hans Leidekker hans at codeweavers.com
Mon Apr 16 05:35:17 CDT 2012


---
 server/process.c    |    1 +
 server/process.h    |    1 +
 server/protocol.def |    1 +
 server/snapshot.c   |    1 +
 4 files changed, 4 insertions(+)

diff --git a/server/process.c b/server/process.c
index de3b594..6a5f4b1 100644
--- a/server/process.c
+++ b/server/process.c
@@ -847,6 +847,7 @@ 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 93ec6c7..976dd38 100644
--- a/server/process.h
+++ b/server/process.h
@@ -90,6 +90,7 @@ 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))
diff --git a/server/protocol.def b/server/protocol.def
index 80c0cd3..31a3b0d 100644
--- a/server/protocol.def
+++ b/server/protocol.def
@@ -1577,6 +1577,7 @@ enum char_info_mode
     int          threads;       /* number of threads */
     int          priority;      /* process priority */
     int          handles;       /* number of handles */
+    int          unix_pid;      /* Unix pid */
     VARARG(filename,unicode_str); /* file name of main exe */
 @END
 
diff --git a/server/snapshot.c b/server/snapshot.c
index bc48922..dd00bd1 100644
--- a/server/snapshot.c
+++ b/server/snapshot.c
@@ -117,6 +117,7 @@ static int snapshot_next_process( struct snapshot *snapshot, struct next_process
     reply->threads  = ptr->threads;
     reply->priority = ptr->priority;
     reply->handles  = ptr->handles;
+    reply->unix_pid = ptr->process->unix_pid;
     if ((exe_module = get_process_exe_module( ptr->process )) && exe_module->filename)
     {
         data_size_t len = min( exe_module->namelen, get_reply_max_size() );
-- 
1.7.9.5







More information about the wine-patches mailing list