X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udevsend.c;h=b67df9720b0e81b97ff811046e3a60881b947a70;hp=8cabe9039bcf061a708260511dd9bd8e4b18c424;hb=13141b9a6a046e2aca812b2442f12f116856addf;hpb=4389ec08fb177f62fc02eb2217fed126aef3a7a3 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");