X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udevsend.c;h=7d865573c27b62f95073cca655df969cb1058941;hb=c449b25e3f998efe8f5988632126fb468ee55fc5;hp=9f324077b3b92ee6d3e67f53363ff28566193099;hpb=13f24d596c5638443ffc7bc48c10a66758335c74;p=elogind.git diff --git a/udevsend.c b/udevsend.c index 9f324077b..7d865573c 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");