Public bug reported: Binary package hint: dhcp3-client
In case pid file does not contain any pid, the message There is already a pid file /var/run/dhclient.pid with pid 134519120 is printed with random unbelievable pids. This bugs comes from "dhclient.c.stale-pids.dpatch" ... @@ -251,11 +251,17 @@ if ((pidfd = fopen(path_dhclient_pid, "r")) != NULL) { e = fscanf(pidfd, "%ld\n", &temp); oldpid = (pid_t)temp; + log_info ("There is already a pid file %s with pid %i", path_dhclient_pid, oldpid); if (e != 0 && e != EOF) { if (oldpid) { - ... The log_info() call should be moved to "if (e != 0 ...)" conditional block as e is 0 and "temp" contains random data if there is no process ID in the pidfile. Observed on Ubuntu 7.10, dhcp3-client Installed: 3.0.5-3ubuntu4. ** Affects: dhcp3 (Ubuntu) Importance: Undecided Status: New -- dhcp3-client warns about nonexisting pid https://bugs.launchpad.net/bugs/219929 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs