Re: [chrony-dev] Feedback for libchrony API |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] Feedback for libchrony API
- From: Reinhard Max <max@xxxxxxx>
- Date: Thu, 24 Aug 2023 13:00:02 +0200 (CEST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692874802; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fDcpdgdgGGnA3GQvr3mZr2t2TzYmLDU/RcfsonGggYw=; b=AM+THuyj8s79QP1KnYH+IP0BNJKPj8QKyWP7wWO+YsTYWdc4TvSnlYJF5lRmqGvBEBSPv9 GmKADCqIG5Ut/wFovwZZiKH0Y9CvPKfDUI2QTFBF5q7+NHWGzaiUNxL2sG4vj/2yRHmafq ij6stXFGutygFwk9YodzA7QzP/Lo21w=
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692874802; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fDcpdgdgGGnA3GQvr3mZr2t2TzYmLDU/RcfsonGggYw=; b=3CRNy3juKCvnLShRJEayHDJoXj22ElNeVRN9rN7t5Gq0Y2izfQ8gtdrNISJ1/wAf6uGOt9 h3BiLo+s/sgCycDw==
Hi,
On Thu, 24 Aug 2023 at 10:09, Miroslav Lichvar wrote:
Is there a portable way to detect when a Unix socket is no longer
referenced by anything?
how about just trying to connect to the socket when the respective
file exists? If the connection succeeds the socket is in use and if it
fails with ECONNREFUSED it is unused and can be deleted and reused.
Do I miss anything?
cu
Reinhard
--
SUSE Software Solutions Germany GmbH (HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.