diff options
author | Marco d'Itri <md@Linux.IT> | 2005-11-25 19:02:25 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-25 19:02:25 +0100 |
commit | 13141b9a6a046e2aca812b2442f12f116856addf (patch) | |
tree | 5f24550a1f8207c768c92d72233986ecd7f8794f /udevsend.c | |
parent | 2796c47b5c88f2775247fd0cddc1385d6bbb10bd (diff) |
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.
Diffstat (limited to 'udevsend.c')
-rw-r--r-- | udevsend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/udevsend.c b/udevsend.c index 8cabe9039b..b67df9720b 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"); |