#include <linux/stddef.h>
#include "udev.h"
-#include "udev_version.h"
#include "udevd.h"
-#include "logging.h"
/* global variables */
static int sock = -1;
logging_init("udevsend");
#ifdef USE_LOG
- udev_init_config();
+ udev_config_init();
#endif
dbg("version %s", UDEV_VERSION);
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");