git.annexia.org
/
virt-top.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bacda42
)
Don't call curses endwin if we are in script mode.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 17 Oct 2007 15:48:40 +0000
(16:48 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Wed, 17 Oct 2007 15:48:40 +0000
(16:48 +0100)
virt-top/virt_top_main.ml
patch
|
blob
|
history
diff --git
a/virt-top/virt_top_main.ml
b/virt-top/virt_top_main.ml
index
edf87de
..
cb3486e
100644
(file)
--- a/
virt-top/virt_top_main.ml
+++ b/
virt-top/virt_top_main.ml
@@
-34,7
+34,7
@@
let error =
try
main_loop setup;
- endwin ();
+
if !script_mode then
endwin ();
false
with
| Libvirt.Virterror err ->