Skip to content

Commit

Permalink
fix warnings on win32
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@23629 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 30, 2019
1 parent f1c8a94 commit 33f4b12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xpra/server/proxy/proxy_instance_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def setproctitle(self, title):
def run(self):
log("ProxyProcess.run() pid=%s, uid=%s, gid=%s", os.getpid(), getuid(), getgid())
self.setproctitle("Xpra Proxy Instance for %s" % self.server_conn)
if POSIX and (os.getuid()!=self.uid or os.getgid()!=self.gid):
if POSIX and (getuid()!=self.uid or getgid()!=self.gid):
#do we need a valid XDG_RUNTIME_DIR for the socket-dir?
username = get_username_for_uid(self.uid)
socket_dir = osexpand(self.socket_dir, username, self.uid, self.gid)
Expand Down
2 changes: 1 addition & 1 deletion src/xpra/server/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def get_info(self, proto, *_args):
break
if sessions:
uid, gid = sessions[:2]
if not POSIX or (uid==os.getuid() and gid==os.getgid()):
if not POSIX or (uid==getuid() and gid==getgid()):
self.reap()
i = 0
for p,v in self.processes.items():
Expand Down

0 comments on commit 33f4b12

Please sign in to comment.