summaryrefslogtreecommitdiffstats
path: root/btimed.c
diff options
context:
space:
mode:
Diffstat (limited to 'btimed.c')
-rw-r--r--btimed.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/btimed.c b/btimed.c
index 67f9e30..6633967 100644
--- a/btimed.c
+++ b/btimed.c
@@ -54,9 +54,6 @@ main(int argc, char **argv)
/* Running out of (x)inetd the socket was duped onto stdin. */
sd = fileno(stdin);
- /* We want to exit after 30 seconds of inactivity */
- alarm(30);
-
/* Generate the standard btime message */
memset(btimeonly, 0, BTIME_MSGLEN);
local_btime = get_btime();
@@ -71,8 +68,8 @@ main(int argc, char **argv)
(struct sockaddr *)&cli_addr, &cli_addr_len);
if (nbytes < 0) {
- /* Bail, we may have had an alarm(), or other error.
- * client side resends request, no need to retry here.
+ /* Bail if we get an error. client side resends
+ * request, no need to retry here.
*/
syslog(LOG_INFO, "exitting");
exit(0);
@@ -90,8 +87,6 @@ main(int argc, char **argv)
sendto(sd, outmsg, BTIME_MSGLEN, MSG_DONTWAIT,
(struct sockaddr *)&cli_addr, cli_addr_len);
- /* We want to exit after 30 seconds of inactivity */
- alarm(30);
}
return 0;