TigerVNC/tigervnc

Meaningful exit codes from vncviewer

Open

#1,008 opened on May 1, 2020

 (9 comments) (1 reaction) (0 assignees)C++ (1,176 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (7,396 stars)
PR merge metrics
 (Avg merge 95d 10h) (4 merged PRs in 30d)

Description

If there is no VNC server running on localhost and I still try to connect, I get the following output:

$ xtigervncviewer -AlertOnFatalError=0 localhost

TigerVNC Viewer 64-bit v1.9.0
Built on: 2020-01-23 18:03
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.

Fri May  1 15:55:44 2020
 DecodeManager: Detected 4 CPU core(s)
 DecodeManager: Creating 4 decoder thread(s)
 CConn:       unable to create socket: Address family not supported by protocol
              (97)
$ echo $?
0

I would have expected a non-zero exit code.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributor guide