1 Star 0 Fork 16

src-openeuler-fork/vmtop

forked from src-openEuler/vmtop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-exit-vmtop-when-arguments-are-invalid.patch 778 Bytes
一键复制 编辑 原始数据 按行查看 历史
nocjj 提交于 2020-09-21 11:55 +08:00 . spec: Update release and changelog
From 92239c1b444cd3f2904e2b3d7c7eaada1e9693ec Mon Sep 17 00:00:00 2001
From: nocjj <1250062498@qq.com>
Date: Sat, 19 Sep 2020 11:46:08 +0800
Subject: [PATCH 3/4] bugfix: exit vmtop when arguments are invalid
Currently if vmtop receive invalid args, vmtop will still run.
It is a abnormal behavior, so exit vmtop when arguments are invalid.
Signed-off-by: Jiajun Chen <1250062498@qq.com>
---
src/vmtop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vmtop.c b/src/vmtop.c
index 7cfb1b3..18d3010 100644
--- a/src/vmtop.c
+++ b/src/vmtop.c
@@ -96,6 +96,7 @@ static void parse_args(int argc, char *argv[])
break;
}
default:
+ exit(1); /* exit vmtop when args are invalid */
break;
}
}
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler-fork/vmtop.git
git@gitee.com:src-openeuler-fork/vmtop.git
src-openeuler-fork
vmtop
vmtop
master

搜索帮助