summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-20 23:31:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-20 23:31:51 +0000
commit407e478681a8359118dd0f376c17fd5da50754d1 (patch)
tree65199654e7e8e0b46d3e709ca10d4b04d27d72cf /libexec
parent3ce9b5208a7ff24c86015c69d064fb73305d1699 (diff)
do not exit(-1)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/comsat/comsat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c
index 585d3724924..d393632b4f7 100644
--- a/libexec/comsat/comsat.c
+++ b/libexec/comsat/comsat.c
@@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)comsat.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: comsat.c,v 1.6 1997/08/05 23:35:23 angelos Exp $";
+static char rcsid[] = "$Id: comsat.c,v 1.7 1997/11/20 23:31:50 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -222,7 +222,7 @@ notify(utp, offset)
(void)alarm((u_int)30);
if ((tp = fopen(tty, "w")) == NULL) {
dsyslog(LOG_ERR, "%s: %s", tty, strerror(errno));
- _exit(-1);
+ _exit(1);
}
(void)tcgetattr(fileno(tp), &ttybuf);
cr = (ttybuf.c_oflag & ONLCR) && (ttybuf.c_oflag & OPOST) ?