summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/talkd/talkd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c
index 66ae372..dffa24c 100644
--- a/libexec/talkd/talkd.c
+++ b/libexec/talkd/talkd.c
@@ -72,7 +72,6 @@ static const char rcsid[] =
CTL_MSG request;
CTL_RESPONSE response;
-int sockt;
int debug = 0;
long lastmsgtime;
@@ -122,8 +121,8 @@ main(int argc, char *argv[])
ctl_addr.sa_len = sizeof(ctl_addr);
process_request(mp, &response);
/* can block here, is this what I want? */
- cc = sendto(sockt, (char *)&response, sizeof (response), 0,
- &ctl_addr, sizeof (ctl_addr));
+ cc = sendto(STDIN_FILENO, (char *)&response,
+ sizeof (response), 0, &ctl_addr, sizeof (ctl_addr));
if (cc != sizeof (response))
syslog(LOG_WARNING, "sendto: %m");
}
OpenPOWER on IntegriCloud