1 Star 0 Fork 100

chenjiayi/systemd

forked from src-openEuler/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-udev-do-not-try-to-process-events-if-there-is-no-free-worker.patch 812 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 5f4bca9dccdd9e9a888587c6224b08ae5fbe3bdb Mon Sep 17 00:00:00 2001
From: Yu Watanabe <[email protected]>
Date: Thu, 17 Jun 2021 15:51:34 +0900
Subject: [PATCH] udev: do not try to process events if there is no free worker
Reference:https://github.com/systemd/systemd/commit/5f4bca9dccdd9e9a888587c6224b08ae5fbe3bdb
Conflict:NA
---
src/udev/udevd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 7f41336..e99c2c0 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -927,7 +927,7 @@ static int event_queue_start(Manager *manager) {
continue;
r = event_run(event);
- if (r < 0)
+ if (r <= 0)
return r;
}
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiayi0118/systemd.git
[email protected]:jiayi0118/systemd.git
jiayi0118
systemd
systemd
master

搜索帮助