2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-07-21 00:27:28 +00:00

Add a note why fork might be ok in auth

This commit is contained in:
Jarrod Johnson
2026-03-19 17:28:51 -04:00
parent 7adef74fe9
commit d8c7e1fc2a
+1 -1
View File
@@ -345,7 +345,7 @@ def pam_check(pwe, user, passphrase):
# get unix_chkpwd helper to enable checking /etc/shadow
getprompt, sendprompt = os.pipe()
getprompt, sendprompt = os.fdopen(getprompt, 'rb', 0), os.fdopen(sendprompt, 'wb', 0)
pid = os.fork()
pid = os.fork() # we are forking with asyncio, but we are not using async in the child so it should be fine.
if not pid:
usergood = False
try: