diff options
author | Anssi Hannula <anssi@mandriva.org> | 2010-01-03 12:11:12 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2010-01-03 12:11:12 +0000 |
commit | d0c2f736167e9e4f5fde49ce16b89dfa22185d7a (patch) | |
tree | b9664b0e8e64adfad6658ea313fc98d40a8e5a32 /monitor-get-edid-using-vbe.c | |
parent | 75dc2ecd455b85e78aaa77212cb33eeb7ffb74bc (diff) | |
download | monitor-edid-d0c2f736167e9e4f5fde49ce16b89dfa22185d7a.tar monitor-edid-d0c2f736167e9e4f5fde49ce16b89dfa22185d7a.tar.gz monitor-edid-d0c2f736167e9e4f5fde49ce16b89dfa22185d7a.tar.bz2 monitor-edid-d0c2f736167e9e4f5fde49ce16b89dfa22185d7a.tar.xz monitor-edid-d0c2f736167e9e4f5fde49ce16b89dfa22185d7a.zip |
Fix exit status logic introduced in previous commits.
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; } |