Commit d1b6cf93 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

server: Include the Unix pid in the snapshot_next_process reply.

parent 51df30b2
......@@ -2052,7 +2052,9 @@ struct next_process_reply
int threads;
int priority;
int handles;
int unix_pid;
/* VARARG(filename,unicode_str); */
char __pad_36[4];
};
......@@ -5646,6 +5648,6 @@ union generic_reply
struct set_suspend_context_reply set_suspend_context_reply;
};
#define SERVER_PROTOCOL_VERSION 431
#define SERVER_PROTOCOL_VERSION 432
#endif /* __WINE_WINE_SERVER_PROTOCOL_H */
......@@ -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++;
}
......
......@@ -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))
......
......@@ -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
......
......@@ -1161,7 +1161,8 @@ C_ASSERT( FIELD_OFFSET(struct next_process_reply, ppid) == 16 );
C_ASSERT( FIELD_OFFSET(struct next_process_reply, threads) == 20 );
C_ASSERT( FIELD_OFFSET(struct next_process_reply, priority) == 24 );
C_ASSERT( FIELD_OFFSET(struct next_process_reply, handles) == 28 );
C_ASSERT( sizeof(struct next_process_reply) == 32 );
C_ASSERT( FIELD_OFFSET(struct next_process_reply, unix_pid) == 32 );
C_ASSERT( sizeof(struct next_process_reply) == 40 );
C_ASSERT( FIELD_OFFSET(struct next_thread_request, handle) == 12 );
C_ASSERT( FIELD_OFFSET(struct next_thread_request, reset) == 16 );
C_ASSERT( sizeof(struct next_thread_request) == 24 );
......
......@@ -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() );
......
......@@ -1969,6 +1969,7 @@ static void dump_next_process_reply( const struct next_process_reply *req )
fprintf( stderr, ", threads=%d", req->threads );
fprintf( stderr, ", priority=%d", req->priority );
fprintf( stderr, ", handles=%d", req->handles );
fprintf( stderr, ", unix_pid=%d", req->unix_pid );
dump_varargs_unicode_str( ", filename=", cur_size );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment