util_reexecute_daemon


Description:


public bool util_reexecute_daemon (Client client) throws Error

Ask the daemon to re-execute itself through client.

It tears its D-Bus connection down before replying, so a missing reply is the expected success, not a failure -- which reexecute_sync already reads as such.

It first waits for the reads still classifying a selection that has a password countdown to bring forward, so that no password is handed to the successor unmonitored. Classification can wait sixty seconds per attempt; completion revalidation can retry within a thirty-second window, for up to ninety seconds overall. The client allows two minutes. An in-process host replies after accepting its restart; a standalone exec closes the connection. A caller that must not block uses reexecute .

Parameters:

client

a connected Client

Returns:

true if the daemon honoured the re-exec


Namespace: GPaste
Package: gpaste-3