File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ psutil_users_systemd(PyObject *self, PyObject *args) {
73
73
PyObject * py_username = NULL ;
74
74
PyObject * py_tty = NULL ;
75
75
PyObject * py_hostname = NULL ;
76
- PyObject * py_user_proc = NULL ;
77
76
double tstamp = 0.0 ;
78
77
pid_t pid = 0 ;
79
78
int sessions ;
@@ -96,8 +95,6 @@ psutil_users_systemd(PyObject *self, PyObject *args) {
96
95
for (int i = 0 ; i < sessions ; i ++ ) {
97
96
session_id = sessions_list [i ];
98
97
py_tuple = NULL ;
99
- py_user_proc = NULL ;
100
- py_user_proc = Py_True ;
101
98
102
99
username = NULL ;
103
100
if (sd_session_get_username (session_id , & username ) < 0 )
@@ -135,12 +132,11 @@ psutil_users_systemd(PyObject *self, PyObject *args) {
135
132
goto error ;
136
133
137
134
py_tuple = Py_BuildValue (
138
- "OOOdO " _Py_PARSE_PID ,
135
+ "OOOd " _Py_PARSE_PID ,
139
136
py_username , // username
140
137
py_tty , // tty
141
138
py_hostname , // hostname
142
139
tstamp , // tstamp
143
- py_user_proc , // (bool) user process
144
140
pid // process id
145
141
);
146
142
if (! py_tuple )
You can’t perform that action at this time.
0 commit comments