chinmoyr added a comment.
> Is it even needed to send -1, if we're going to return an error reply anyway? The current logic is "after a successful sendFileDescriptor close the socket". So sending -1 was to ensure socket is closed. REVISION DETAIL https://phabricator.kde.org/D6197 To: chinmoyr, elvisangelaccio, #frameworks, dfaure