projects
/
infodrom
/
newmail
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
998b63a
)
Terminate if the tty is gone
author
Joey Schulze
<joey@infodrom.org>
Thu, 22 Nov 2007 21:01:16 +0000
(21:01 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Thu, 22 Nov 2007 21:01:16 +0000
(21:01 +0000)
newmail.c
patch
|
blob
|
history
diff --git
a/newmail.c
b/newmail.c
index
6c9023b
..
e96bd16
100644
(file)
--- a/
newmail.c
+++ b/
newmail.c
@@
-90,6
+90,10
@@
int main(int argc, char *argv[])
/* wait for the next incarnation */
sleep (opt_interval);
+
+ /* Terminate if we lost out tty */
+ if (!isatty(1))
+ return 1;
}
/* Not reached */