mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-31 07:51: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:
parent
2796c47b5c
commit
13141b9a6a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user