commit-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-312-g625b1


From: Mats Erik Andersson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-312-g625b1fa
Date: Thu, 27 Jun 2013 23:20:25 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  625b1fa2254eee5962db1e3ff76f999d556a6d8d (commit)
      from  50ef032a587b6ba374d48e7b8c8a29795e29c5d4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=625b1fa2254eee5962db1e3ff76f999d556a6d8d


commit 625b1fa2254eee5962db1e3ff76f999d556a6d8d
Author: Mats Erik Andersson <address@hidden>
Date:   Fri Jun 28 01:03:05 2013 +0200

    traceroute: Portability of PID range.

diff --git a/ChangeLog b/ChangeLog
index a1d3e00..381c0b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-06-28  Mats Erik Andersson  <address@hidden>
+
+       traceroute: Portability of PID range.
+       FreeBSD uses process ID beyond 65535.
+
+       * src/traceroute.c (main): Only keep lower
+       16 bits of getpid().  A larger identity span
+       cannot be accommodated into the payload.
+
 2013-06-27  Mats Erik Andersson  <address@hidden>
 
        rshd: Require host name.
diff --git a/src/traceroute.c b/src/traceroute.c
index 132de9f..a16b0d5 100644
--- a/src/traceroute.c
+++ b/src/traceroute.c
@@ -266,7 +266,7 @@ main (int argc, char **argv)
   setlocale (LC_ALL, "");
 #endif
 
-  pid = getpid();
+  pid = getpid() & 0xffff;
 
   /* Parse command line */
   iu_argp_init ("traceroute", program_authors);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |    9 +++++++++
 src/traceroute.c |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]