Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 25372 - internal time service in inetd-0.16-7 is not working
internal time service in inetd-0.16-7 is not working
Product: Red Hat Linux
Classification: Retired
Component: inetd (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2001-01-31 03:17 EST by volf
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-31 09:42:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description volf 2001-01-31 03:17:59 EST
Internal time service in inetd-0.16-7 is not working at all. This
"external" server:

==cut here==
#include <fcntl.h>
#include <sys/time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <syslog.h>

/* functions machtime and machtime_stream are taken from inetd sources and
slightly modified */
static unsigned long machtime(void)
        struct timeval tv;

        if (gettimeofday(&tv, (struct timezone *)0) < 0) {
                syslog(LOG_ERR, "Unable to get time of day\n");
                return (0L);
        return (htonl((unsigned long)tv.tv_sec + 2208988800UL));

void machtime_stream(int s)
        unsigned long result;

        result = machtime();
        write(s, (char *) &result, sizeof(result));

int main (int argc, char **argv)
        openlog ("mytimed", LOG_PID | LOG_ODELAY, LOG_DAEMON);



        return 0;
==cut here==

IS working on the same machine. What's wrong?
Comment 1 volf 2001-01-31 09:42:19 EST
Now it is working. I don't know why. Probably there is something wrong between
the keyboard and the chair ;-) Sorry.

Note You need to log in before you can comment on or make changes to this bug.