Move getpwuid() from backends to gui, use getpwuid_r(), call only once on task add. (bug 14401)

This commit is contained in:
rim
2018-05-29 03:11:15 +03:00
committed by Landry Breuil
parent 40a3e65803
commit 8e1b48f8de
7 changed files with 17 additions and 25 deletions

View File

@@ -25,7 +25,6 @@ typedef struct _Task Task;
struct _Task
{
guint uid;
gchar uid_name[256];
GPid pid;
GPid ppid;
gchar name[256];
@@ -94,6 +93,7 @@ enum
void get_owner_uid (guint *owner_uid, gchar **owner_uid_name);
gchar * get_hostname (void);
gchar * get_uid_name (guint uid);
gboolean send_signal_to_pid (GPid pid, gint xtm_signal);
gint task_pid_compare_fn (gconstpointer a, gconstpointer b);
gboolean set_priority_to_pid (GPid pid, gint priority);