[Ocfs2-tools-devel] [PATCH]ocfs2console: exit when DISPLAY is not correctly set

Coly Li coly.li at suse.de
Mon Dec 15 09:33:59 PST 2008


This a patch is helpful to a SLE11 HASI bug here,
https://bugzilla.novell.com/show_bug.cgi?id=448523

BTW, I suggest you to modify your email address to @cn.ibm.com ;-)

Ack-by: Coly Li <coly.li at suse.de>

Hu.Ziming Wrote:
> When DISPLAY is not correctly set, this patch makes ocfs2console report error
> mesage and exit, other than a ugly crash.
> 
> Signed-off-by: Hu Ziming <huzim at cn.imb.com>
> ---
>  ocfs2console/ocfs2console |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/ocfs2console/ocfs2console b/ocfs2console/ocfs2console
> index 77ab623..580d54b 100755
> --- a/ocfs2console/ocfs2console
> +++ b/ocfs2console/ocfs2console
> @@ -3,6 +3,9 @@
>  from ocfs2interface.about import process_args
>  nodeconf = process_args()
> 
> +import warnings
> +warnings.simplefilter("error")
> +
>  try:
>      import gtk
>  except RuntimeError:
> 
> _______________________________________________
> Ocfs2-tools-devel mailing list
> Ocfs2-tools-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-tools-devel

-- 
Coly Li
SuSE PRC Labs



More information about the Ocfs2-tools-devel mailing list