osx - Bidirectional communication with AuthorizationExecuteWithPrivileges -


i need execute helper tool authorizationexecutewithprivileges, send data stdin, , read reply on stdout. can execute helper tool , read stdout via communicationspipe, if write stdin have close file descriptor send eof, otherwise helper tool waits indefinitely. since that's returned file descriptor opened reading , writing, how close write end, keep read end open?

you write eof (see stdin.h define of eof) stdin. should it. communicate helper tool via named pipes or sockets, though helper tool have support that.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -