From 13141b9a6a046e2aca812b2442f12f116856addf Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Fri, 25 Nov 2005 19:02:25 +0100 Subject: [PATCH] let udevsend ignore events with SEQNUM set Using syslog from udevsend for error logging when the daemon is not running, causes vc events and an udev event loop. --- udevsend.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/udevsend.c b/udevsend.c index 8cabe9039..b67df9720 100644 --- a/udevsend.c +++ b/udevsend.c @@ -96,6 +96,13 @@ int main(int argc, char *argv[], char *envp[]) key = envp[i]; keylen = strlen(key); + /* ignore events which are already sent on the netlink socket */ + if (strncmp(key, "SEQNUM=", 7) == 0) { + dbg("ignoring event with SEQNUM set"); + retval = 0; + goto exit; + } + /* prevent loops in the scripts we execute */ if (strncmp(key, "UDEVD_EVENT=", 12) == 0) { err("event loop, already passed through the daemon, exit"); -- 2.30.2