mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-11-20 14:39:22 +01:00
Replace start_new_session with preexec_fn to maintain python compatability
This commit is contained in:
parent
ee44802a8a
commit
7ad6667189
@ -1158,7 +1158,7 @@ def stdapi_sys_process_execute(request, response):
|
||||
termios.tcsetattr(master, termios.TCSADRAIN, settings)
|
||||
except:
|
||||
pass
|
||||
proc_h = STDProcess(args, stdin=slave, stdout=slave, stderr=slave, bufsize=0, start_new_session=True)
|
||||
proc_h = STDProcess(args, stdin=slave, stdout=slave, stderr=slave, bufsize=0, preexec_fn=os.setsid)
|
||||
proc_h.stdin = os.fdopen(master, 'wb')
|
||||
proc_h.stdout = os.fdopen(master, 'rb')
|
||||
proc_h.stderr = open(os.devnull, 'rb')
|
||||
|
Loading…
Reference in New Issue
Block a user