You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialize SECURITY_ATTRIBUTES only once in proc_open.c
Every time proc_open() is called on Windows, an identical SECURITY_ATTRIBUTES struct
is initialized. It is never modified, just used to tell CreateProcessW() that
subprocesses are allowed to inherit file handles from the parent.
Just allocate one of them statically and be done with it.
0 commit comments