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 @@ -63,7 +63,6 @@ psutil_users_systemd(PyObject *self, PyObject *args) {
63
63
PyObject * py_username = NULL ;
64
64
PyObject * py_tty = NULL ;
65
65
PyObject * py_hostname = NULL ;
66
- PyObject * py_user_proc = NULL ;
67
66
double tstamp = 0.0 ;
68
67
pid_t pid = 0 ;
69
68
int sessions ;
@@ -86,8 +85,6 @@ psutil_users_systemd(PyObject *self, PyObject *args) {
86
85
for (int i = 0 ; i < sessions ; i ++ ) {
87
86
session_id = sessions_list [i ];
88
87
py_tuple = NULL ;
89
- py_user_proc = NULL ;
90
- py_user_proc = Py_True ;
91
88
92
89
username = NULL ;
93
90
if (sd_session_get_username (session_id , & username ) < 0 )
@@ -125,12 +122,11 @@ psutil_users_systemd(PyObject *self, PyObject *args) {
125
122
goto error ;
126
123
127
124
py_tuple = Py_BuildValue (
128
- "OOOdO " _Py_PARSE_PID ,
125
+ "OOOd " _Py_PARSE_PID ,
129
126
py_username , // username
130
127
py_tty , // tty
131
128
py_hostname , // hostname
132
129
tstamp , // tstamp
133
- py_user_proc , // (bool) user process
134
130
pid // process id
135
131
);
136
132
if (! py_tuple )
You can’t perform that action at this time.
0 commit comments