usage of getpid

Peter Kümmel syntheticpp at gmx.net
Thu Jun 14 14:36:27 PDT 2007


Isn't _dbus_getpid the better function?

Modified: branches/patched/bus/dispatch.c
===================================================================
--- branches/patched/bus/dispatch.c	2007-06-14 21:02:48 UTC (rev 624)
+++ branches/patched/bus/dispatch.c	2007-06-14 21:04:34 UTC (rev 625)
@@ -1335,7 +1335,7 @@
            *       cause then we can test that the pid returned matches
            *       getppid()
            */
-          if (pid != (dbus_uint32_t) getpid ())
+          if (pid != (dbus_uint32_t) _dbus_getpid ())
             {
               _dbus_assert (dbus_error_is_set (&error));
               _dbus_warn ("Result from GetConnectionUnixProcessID is not our own pid\n");


Peter


More information about the dbus mailing list