Use SA_RESTART flag to make sure that interrupted calls to read and/or write are restarted.
In my case read is interrupted when reading login1_session_id. Result of not handling EINTR error is that login1_session_id is set to NULL and console_kit_cookie gets login1 session id.
Use SA_RESTART flag to make sure that interrupted calls to read and/or write are restarted.
In my case read is interrupted when reading login1_session_id. Result of not handling EINTR error is that login1_session_id is set to NULL and console_kit_cookie gets login1 session id.