diff options
Diffstat (limited to 'monitor-get-edid-using-vbe.c')
-rw-r--r-- | monitor-get-edid-using-vbe.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/monitor-get-edid-using-vbe.c b/monitor-get-edid-using-vbe.c index f922a6b..3f8ab1c 100644 --- a/monitor-get-edid-using-vbe.c +++ b/monitor-get-edid-using-vbe.c @@ -17,7 +17,7 @@ int verbose = 0; static void timeout_handler(int signal) { fprintf(stderr, "ERROR: timeout during EDID probe\n"); - exit(1); + exit(3); } int main(int argc, char **argv) @@ -78,8 +78,11 @@ int main(int argc, char **argv) return 0; } - /* returns 1 when VBE call was ok but not EDID call; - * calling program can then speedup call on other ports with --skip-vbe-check; - * also, calling program knows no ports work if the VBE call failed */ + /* returns 1 on error before any successful calls; no ports work; + * calling program may skip other ports + * returns 2 on other errors; a different port may still work (call to VBE was ok); + * calling program may speedup call on other ports with --skip-vbe-check + * returns 3 on timeout + */ return -size; } |