conditional expression reordering while sending unix fd over dbus connection.
Submitted by Deepika Aggarwal
Assigned to D-Bus Maintainers
Description
Created attachment 116667 patch for conditional expression reordering while sending unix fd
This contribution applies conditional expression reordering for efficient error case handling in case of sending messages holding unix fd’s over dbus connection. It is a suggestion patch to save function call, by checking firstly the unix fd in message, prior to transport function call check.
eg. In function : dbus_connection_send() if message->n_unix_fds < 0 , then function call to _dbus_transport_can_pass_unix_fd() will be saved.
The test suite works fine after applying the proposed patch. Summary is as below: Testsuite summary for dbus 1.9.17
TOTAL: 93
PASS: 90
SKIP: 3
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
=============================================================================
Patch 116667, "patch for conditional expression reordering while sending unix fd":
dbus-unix-fd-check-optimization.patch
Version: git master