1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 23:21:08 +03:00

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.
This commit is contained in:
Marco d'Itri 2005-11-25 19:02:25 +01:00 committed by Kay Sievers
parent 2796c47b5c
commit 13141b9a6a

View File

@ -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");