Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
: set_peer_sun_path (NULL, 0); }
void set_cred ();
void fixup_after_fork (HANDLE parent);
+ void fixup_after_exec ();
void set_close_on_exec (bool val);
public:
peer_cred.gid = (gid_t) -1;
}
+/* ========================== public methods ========================= */
+
void
fhandler_socket_unix::fixup_after_fork (HANDLE parent)
{
cwt_param = NULL;
}
+void
+fhandler_socket_unix::fixup_after_exec ()
+{
+ if (!close_on_exec ())
+ fixup_after_fork (NULL);
+}
+
void
fhandler_socket_unix::set_close_on_exec (bool val)
{
set_no_inheritance (backing_file_handle, val);
}
-/* ========================== public methods ========================= */
-
fhandler_socket_unix::fhandler_socket_unix ()
{
set_cred ();