make sock writeable
This commit is contained in:
parent
35cd391e6c
commit
7575c13d71
@ -30,7 +30,7 @@ from fenrirscreenreader.core.eventData import fenrirEventType
|
|||||||
import time
|
import time
|
||||||
import select
|
import select
|
||||||
import socket
|
import socket
|
||||||
import os, os.path
|
import os, os.path, sys, stat
|
||||||
|
|
||||||
class remoteManager():
|
class remoteManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -68,6 +68,7 @@ class remoteManager():
|
|||||||
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
self.sock.bind(socketpath)
|
self.sock.bind(socketpath)
|
||||||
self.sock.listen(1)
|
self.sock.listen(1)
|
||||||
|
os.chmod(socketpath, 0o222)
|
||||||
while active.value == 1:
|
while active.value == 1:
|
||||||
client_sock, client_addr = self.sock.accept()
|
client_sock, client_addr = self.sock.accept()
|
||||||
if client_sock:
|
if client_sock:
|
||||||
|
Loading…
Reference in New Issue
Block a user