equal
deleted
inserted
replaced
|
1 We shouldn't need this now - should send upstream |
|
2 |
|
3 --- polkit-0.113/src/polkit/polkitunixprocess.c.~1~ 2014-01-14 14:42:25.000000000 -0800 |
|
4 +++ polkit-0.113/src/polkit/polkitunixprocess.c 2015-10-03 00:15:34.441044107 -0700 |
|
5 @@ -80,7 +80,7 @@ |
|
6 |
|
7 static void subject_iface_init (PolkitSubjectIface *subject_iface); |
|
8 |
|
9 -static guint64 get_start_time_for_pid (gint pid, |
|
10 +static guint64 get_start_time_for_pid (pid_t pid, |
|
11 GError **error); |
|
12 |
|
13 static gint _polkit_unix_process_get_owner (PolkitUnixProcess *process, |
|
14 @@ -512,28 +512,6 @@ |
|
15 subject_iface->exists_sync = polkit_unix_process_exists_sync; |
|
16 } |
|
17 |
|
18 -#ifdef HAVE_SOLARIS |
|
19 -static int |
|
20 -get_pid_psinfo (pid_t pid, struct psinfo *ps) |
|
21 -{ |
|
22 - char pname[32]; |
|
23 - int procfd; |
|
24 - |
|
25 - (void) snprintf(pname, sizeof(pname), "/proc/%d/psinfo", pid); |
|
26 - if ((procfd = open(pname, O_RDONLY)) == -1) |
|
27 - { |
|
28 - return -1; |
|
29 - } |
|
30 - if (read(procfd, ps, sizeof(struct psinfo)) < 0) |
|
31 - { |
|
32 - (void) close(procfd); |
|
33 - return -1; |
|
34 - } |
|
35 - (void) close(procfd); |
|
36 - return 0; |
|
37 -} |
|
38 -#endif |
|
39 - |
|
40 #ifdef HAVE_FREEBSD |
|
41 static gboolean |
|
42 get_kinfo_proc (pid_t pid, struct kinfo_proc *p) |