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
Post a Comment