diff options
| author | Carson Fleming <cflems@cflems.net> | 2022-12-22 05:21:48 -0800 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2022-12-22 05:21:48 -0800 |
| commit | db030656cf2ee224d56c1da2e464aaea980fe2ca (patch) | |
| tree | 375c04281713769898c3885dcb8837628b215690 /pkctl.py | |
| parent | 95bd906e0fc6c541ca3b35a230e15ab268ff1081 (diff) | |
| download | pk-db030656cf2ee224d56c1da2e464aaea980fe2ca.tar.gz | |
Use umask to allow group members to control pk + some cleanup
Diffstat (limited to 'pkctl.py')
| -rw-r--r-- | pkctl.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -65,7 +65,6 @@ def attach_reader(sock, state): if len(data) > 0: pnnl(str(data, 'utf-8')) sock.close() - threading.main_thread().join() def attach_cmd(): if not isd_running(): @@ -107,7 +106,9 @@ def attach_cmd(): state['attached'] = False break + state['attached'] = False sock.close() + reader_thread.join() return True def exec_cmd(*args): @@ -156,7 +157,7 @@ def main(): if attach_cmd(): print('Detached from daemon; quitting.') else: - print('Cannot contact daemon; ensure it is running.') + print('Cannot contact daemon; ensure it is running and you have access to it.') else: print('Unrecognized command:', sys.argv[1]) print_help() |
