commit 032b44ea773f31a46cd84f32c95d523c0700aeab
parent afe331e1428e30ee08f7ff89f6a9c44a04f5aa38
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date: Tue, 7 Jun 2011 11:10:51 +0200
Handle return value better
Diffstat:
| sandy.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --dropbox a/sandy.c b/sandy.c
@@ -684,7 +684,7 @@ i_cleanup(int sig) {
regfree(find_res[0]);
regfree(find_res[1]);
endwin();
- exit(sig>0?1:0);
+ exit(sig>0?128+sig:t_mod()?1:0);
}
void /* Quit more gracefully */