summaryrefslogtreecommitdiff
path: root/udevsend.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevsend.c')
-rw-r--r--udevsend.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/udevsend.c b/udevsend.c
index 9f324077b3..7d865573c2 100644
--- a/udevsend.c
+++ b/udevsend.c
@@ -132,6 +132,12 @@ int main(int argc, char *argv[], char *envp[])
goto exit;
}
+ /* prevent loops in the scripts we execute */
+ if (getenv("MANAGED_EVENT") != NULL) {
+ dbg("seems that the event source is not the kernel, just exit");
+ goto exit;
+ }
+
sock = socket(AF_LOCAL, SOCK_DGRAM, 0);
if (sock == -1) {
dbg("error getting socket");