mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 20:31:13 +01:00
Add a reasonable error message telling the caller to specify a program
to be executed under hwpmc. If there is no program to run then exit.
This commit is contained in:
parent
7d4317bd40
commit
d2c10b2a70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240101
@ -67,6 +67,10 @@ def main():
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if (options.program == None):
|
||||
print "specify program, such as ls, with -p/--program"
|
||||
sys.exit()
|
||||
|
||||
p = subprocess.Popen(["pmccontrol", "-L"], stdout=PIPE)
|
||||
counters = p.communicate()[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user