<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1052</id>
	<title>Nabble - Free Desktop - dbus</title>
	<updated>2009-12-20T00:39:30Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Free-Desktop---dbus-f1052.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Free-Desktop---dbus-f1052.html" />
	<subtitle type="html">Desktop message bus technical discussion.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26861783</id>
	<title>Re: dbus-string.c problem ?</title>
	<published>2009-12-20T00:39:30Z</published>
	<updated>2009-12-20T00:39:30Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Domingo 20. Dezembro 2009, às 04.38.48, Paul McNary escreveu:
&lt;br&gt;&amp;gt; Hello when trying to run I get the following error:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 18437: assertion failed &amp;quot;additional_length &amp;gt;= 0&amp;quot; file &amp;quot;dbus-string.c&amp;quot; line
&lt;br&gt;&amp;gt; &amp;nbsp;867 function unknown function D-Bus not compiled with backtrace support so
&lt;br&gt;&amp;gt; &amp;nbsp;unable to print a backtrace EOF in dbus-launch reading address from bus
&lt;br&gt;&amp;gt; &amp;nbsp;daemon
&lt;br&gt;&lt;br&gt;When trying to run what?
&lt;br&gt;&lt;br&gt;&amp;gt; I don't under stand the function unknown function part.
&lt;br&gt;&lt;br&gt;It probably is a result of the missing debug information.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26861783&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26861783/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbus-string.c-problem---tp26860865p26861783.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860865</id>
	<title>dbus-string.c problem ?</title>
	<published>2009-12-19T19:38:48Z</published>
	<updated>2009-12-19T19:38:48Z</updated>
	<author>
		<name>pmac</name>
	</author>
	<content type="html">Hello when trying to run I get the following error:
&lt;br&gt;&lt;br&gt;18437: assertion failed &amp;quot;additional_length &amp;gt;= 0&amp;quot; file &amp;quot;dbus-string.c&amp;quot; line 867 function unknown function
&lt;br&gt;&amp;nbsp; &amp;nbsp;D-Bus not compiled with backtrace support so unable to print a backtrace
&lt;br&gt;EOF in dbus-launch reading address from bus daemon
&lt;br&gt;&lt;br&gt;I don't under stand the function unknown function part.
&lt;br&gt;&lt;br&gt;Thanks for any help
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860865&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbus-string.c-problem---tp26860865p26860865.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26846521</id>
	<title>Re: [Patch] increase dbus_verbose readability</title>
	<published>2009-12-18T09:09:47Z</published>
	<updated>2009-12-18T09:09:47Z</updated>
	<author>
		<name>Ralf Habacker</name>
	</author>
	<content type="html">Ralf Habacker schrieb:
&lt;br&gt;&amp;gt; If those functions would be located into a 
&lt;br&gt;&amp;gt; specific context related header like dbus-file.h then it would be even 
&lt;br&gt;&amp;gt; clearer, which functions are available in the &amp;quot;file related&amp;quot; context.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;I tried to go a step in this directection by placing the small pseudo 
&lt;br&gt;&amp;quot;class&amp;quot; DBusPipe into separate files. (The above mentioned dbus-file 
&lt;br&gt;stuff was skipped for now because it needs more attention)
&lt;br&gt;It needed some more iterations until it works both on windows and unix 
&lt;br&gt;mainly because of required macro location move for DBUS_GNU_PRINTF and 
&lt;br&gt;some cryptic DBusPipe forward declarations, which did not allow to be 
&lt;br&gt;overriden by the real struct definition. If was required to remove those 
&lt;br&gt;DBusPipe forward declarations and to include the dbus-pipe.h header.
&lt;br&gt;&lt;br&gt;I will see if there is additional time to migrate additional pseudo 
&lt;br&gt;&amp;quot;classes&amp;quot;
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26846521&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--increase-dbus_verbose-readability-tp26824994p26846521.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830462</id>
	<title>Re: [Patch] increase dbus_verbose readability</title>
	<published>2009-12-17T08:09:12Z</published>
	<updated>2009-12-17T08:09:12Z</updated>
	<author>
		<name>Ralf Habacker</name>
	</author>
	<content type="html">Ralf Habacker schrieb:
&lt;br&gt;&amp;gt; Ralf Habacker schrieb:
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Are there any helpfull suggestions for this feature ?
&lt;br&gt;&amp;gt; patch updated - the previous patch contains an unrelated part - sorry 
&lt;br&gt;&amp;gt; for confusion.
&lt;br&gt;I just compiled dbus with the patch on linux and got the following error:
&lt;br&gt;&lt;br&gt;&lt;br&gt;dbus-internals.h:86:8: error: __VA_ARGS__ can only appear in the 
&lt;br&gt;expansion of a C99 variadic macro
&lt;br&gt;&lt;br&gt;which comes from the following line trying to detect variable args support
&lt;br&gt;#ifdef __VA_ARGS__
&lt;br&gt;&lt;br&gt;Does anyone have an idea how to detect otherwise if the compiler 
&lt;br&gt;supports variable argument replacement in macros or can we assume that 
&lt;br&gt;any compiler support this ?
&lt;br&gt;&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830462&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--increase-dbus_verbose-readability-tp26824994p26830462.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826995</id>
	<title>Re: [Patch] increase dbus_verbose readability</title>
	<published>2009-12-17T03:58:53Z</published>
	<updated>2009-12-17T03:58:53Z</updated>
	<author>
		<name>Ralf Habacker</name>
	</author>
	<content type="html">Tor Lillqvist schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Just a related note:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (*p == DBUS_DIR_SEPARATOR)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please, check for both slash and backslash on Windows, they are
&lt;br&gt;&amp;gt; equivalent (at the Win32, and thus certainly C library, level) and
&lt;br&gt;&amp;gt; either can occur for various reasons. I.e., use a
&lt;br&gt;&amp;gt; DBUS_IS_DIR_SEPARATOR() function-type macro instead of
&lt;br&gt;&amp;gt; DBUS_DIR_SEPARATOR. Something like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #ifdef DBUS_WIN
&lt;br&gt;&amp;gt; #define DBUS_IS_DIR_SEPARATOR(c) ((c) == '\\' || (c) == '/')
&lt;br&gt;&amp;gt; #else
&lt;br&gt;&amp;gt; #define DBUS_IS_DIR_SEPARATOR(c) ((c) == '/')
&lt;br&gt;&amp;gt; #endif
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;which probably should go into dbus-sysdeps.h, where the other path 
&lt;br&gt;related functions/macros are located ? 
&lt;br&gt;&lt;br&gt;It's often hard to find the correct location and naming convention 
&lt;br&gt;because dbus uses internal one big context named _dbus_.
&lt;br&gt;These contexts looks like a namespace or class term leaned on from the 
&lt;br&gt;c++ universe or what ever name could be imagined for this kind of grouping
&lt;br&gt;&lt;br&gt;There are some additional contexts like _dbus_file &amp;nbsp;with functions like
&lt;br&gt;&lt;br&gt;_dbus_file_get_content() &amp;nbsp;and dbus_file_exist(),
&lt;br&gt;&lt;br&gt;but there are also
&lt;br&gt;&lt;br&gt;_dbus_make_file_world_readable()
&lt;br&gt;_dbus_create_file_exclusively
&lt;br&gt;_dbus_delete_file
&lt;br&gt;&lt;br&gt;which are - at least from my point of view - related &amp;nbsp;to this dbus_file_ 
&lt;br&gt;context but are named completly different.
&lt;br&gt;&lt;br&gt;I guess
&lt;br&gt;&lt;br&gt;_dbus_file_make_world_readable()
&lt;br&gt;_dbus_file_create_exclusively()
&lt;br&gt;_dbus_file_delete()
&lt;br&gt;&lt;br&gt;would make it clearer. If those functions would be located into a 
&lt;br&gt;specific context related header like dbus-file.h then it would be even 
&lt;br&gt;clearer, which functions are available in the &amp;quot;file related&amp;quot; context.
&lt;br&gt;&lt;br&gt;My guess is that these dbus-sysdeps.h stuff was introduced in the - 
&lt;br&gt;small size - beginning of this project. Now the dbus project has reached 
&lt;br&gt;a size where better approaches (as described above for one topic) would 
&lt;br&gt;make the implementation easier to understand.
&lt;br&gt;&lt;br&gt;Any comments ?
&lt;br&gt;&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826995&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--increase-dbus_verbose-readability-tp26824994p26826995.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826254</id>
	<title>Re: [Patch] increase dbus_verbose readability</title>
	<published>2009-12-17T02:52:03Z</published>
	<updated>2009-12-17T02:52:03Z</updated>
	<author>
		<name>Tor Lillqvist</name>
	</author>
	<content type="html">Just a related note:
&lt;br&gt;&lt;br&gt;&amp;gt; +               if (*p == DBUS_DIR_SEPARATOR)
&lt;br&gt;&lt;br&gt;Please, check for both slash and backslash on Windows, they are
&lt;br&gt;equivalent (at the Win32, and thus certainly C library, level) and
&lt;br&gt;either can occur for various reasons. I.e., use a
&lt;br&gt;DBUS_IS_DIR_SEPARATOR() function-type macro instead of
&lt;br&gt;DBUS_DIR_SEPARATOR. Something like:
&lt;br&gt;&lt;br&gt;#ifdef DBUS_WIN
&lt;br&gt;#define DBUS_IS_DIR_SEPARATOR(c) ((c) == '\\' || (c) == '/')
&lt;br&gt;#else
&lt;br&gt;#define DBUS_IS_DIR_SEPARATOR(c) ((c) == '/')
&lt;br&gt;#endif
&lt;br&gt;&lt;br&gt;(Yes, this makes the code a bit more complex when what you would want
&lt;br&gt;to do is something like strchr(s, DBUS_DIR_SEPARATOR).)
&lt;br&gt;&lt;br&gt;(And for file names there is also the multi-byte codepage issue... in
&lt;br&gt;the CJK codepages some characters have as trailing byte a slash or
&lt;br&gt;backslash, so actually one should use multi-byte string functions when
&lt;br&gt;scanning strings looking for directory separators... but let's not get
&lt;br&gt;into that now.)
&lt;br&gt;&lt;br&gt;--tml
&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826254&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--increase-dbus_verbose-readability-tp26824994p26826254.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825195</id>
	<title>Re: [Patch] increase dbus_verbose readability</title>
	<published>2009-12-17T01:15:14Z</published>
	<updated>2009-12-17T01:15:14Z</updated>
	<author>
		<name>Ralf Habacker</name>
	</author>
	<content type="html">Ralf Habacker schrieb:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are there any helpfull suggestions for this feature ?
&lt;br&gt;patch updated - the previous patch contains an unrelated part - sorry 
&lt;br&gt;for confusion.
&lt;br&gt;&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
&lt;br&gt;index edf7de6..9d4ef8d 100644
&lt;br&gt;--- a/dbus/dbus-internals.c
&lt;br&gt;+++ b/dbus/dbus-internals.c
&lt;br&gt;@@ -329,6 +329,41 @@ _dbus_verbose_init (void)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+#ifdef DBUS_WIN 
&lt;br&gt;+#define DBUS_DIR_SEPARATOR '\\'
&lt;br&gt;+#else
&lt;br&gt;+#define DBUS_DIR_SEPARATOR '/'
&lt;br&gt;+#endif
&lt;br&gt;+
&lt;br&gt;+/** 
&lt;br&gt;+ remove source root from file path 
&lt;br&gt;+ the source root is determined by 
&lt;br&gt;+*/ 
&lt;br&gt;+static char *_dbus_file_path_extract_elements_from_tail(const char *file,int level)
&lt;br&gt;+{
&lt;br&gt;+	static int prefix = -1;
&lt;br&gt;+	char *p;
&lt;br&gt;+
&lt;br&gt;+	if (prefix == -1) 
&lt;br&gt;+	 &amp;nbsp;{
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;char *p = file + strlen(file);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prefix = 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (;p &amp;gt;= file;p--)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (*p == DBUS_DIR_SEPARATOR)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (++i &amp;gt;= level) 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prefix = p-file+1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+	return file+prefix;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;/**
&lt;br&gt;&amp;nbsp; * Implementation of dbus_is_verbose() macro if built with verbose logging
&lt;br&gt;&amp;nbsp; * enabled.
&lt;br&gt;@@ -350,7 +385,14 @@ _dbus_is_verbose_real (void)
&lt;br&gt;&amp;nbsp; * @param format printf-style format string.
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;void
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+_dbus_verbose_real (const char *file, 
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp;const int line, 
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp;const char *function, 
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp;const char *format,
&lt;br&gt;+#else
&lt;br&gt;&amp;nbsp;_dbus_verbose_real (const char *format,
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_list args;
&lt;br&gt;@@ -382,17 +424,24 @@ _dbus_verbose_real (const char *format,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;need_pid = TRUE;
&lt;br&gt;&amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;need_pid = FALSE;
&lt;br&gt;- &amp;nbsp;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_start (args, format);
&lt;br&gt;&amp;nbsp;#ifdef DBUS_USE_OUTPUT_DEBUG_STRING
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;char buf[1024];
&lt;br&gt;&amp;nbsp; &amp;nbsp;strcpy(buf,module_name);
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+ &amp;nbsp;vsprintf (buf+strlen(buf), &amp;quot;%s(%d):%s &amp;quot;,_dbus_file_path_extract_elements_from_tail(file,2),line,function);
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp; &amp;nbsp;vsprintf (buf+strlen(buf),format, args);
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_end (args);
&lt;br&gt;&amp;nbsp; &amp;nbsp;OutputDebugString(buf);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;#else
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+ &amp;nbsp;fprintf (stderr, &amp;quot;%s(%d):%s &amp;quot;,_dbus_file_path_extract_elements_from_tail(file,2),line,function);
&lt;br&gt;+#endif
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;vfprintf (stderr, format, args);
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_end (args);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h
&lt;br&gt;index 8b5af8d..a79ee20 100644
&lt;br&gt;--- a/dbus/dbus-internals.h
&lt;br&gt;+++ b/dbus/dbus-internals.h
&lt;br&gt;@@ -83,12 +83,18 @@ void _dbus_warn_check_failed &amp;nbsp;(const char *format,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#ifdef DBUS_ENABLE_VERBOSE_MODE
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+void _dbus_verbose_real &amp;nbsp; &amp;nbsp; &amp;nbsp; (const char *file, const int line, const char *function, 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const char *format,...) _DBUS_GNUC_PRINTF (1, 2);
&lt;br&gt;+# &amp;nbsp;define _dbus_verbose(fmt,...) _dbus_verbose_real( __FILE__,__LINE__,__FUNCTION__,fmt, ## __VA_ARGS__)
&lt;br&gt;+#else
&lt;br&gt;&amp;nbsp;void _dbus_verbose_real &amp;nbsp; &amp;nbsp; &amp;nbsp; (const char *format,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...) _DBUS_GNUC_PRINTF (1, 2);
&lt;br&gt;+# &amp;nbsp;define _dbus_verbose _dbus_verbose_real
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp;void _dbus_verbose_reset_real (void);
&lt;br&gt;&amp;nbsp;dbus_bool_t _dbus_is_verbose_real (void);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-# &amp;nbsp;define _dbus_verbose _dbus_verbose_real
&lt;br&gt;&amp;nbsp;# &amp;nbsp;define _dbus_verbose_reset _dbus_verbose_reset_real
&lt;br&gt;&amp;nbsp;# &amp;nbsp;define _dbus_is_verbose _dbus_is_verbose_real
&lt;br&gt;&amp;nbsp;#else
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825195&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--increase-dbus_verbose-readability-tp26824994p26825195.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26824994</id>
	<title>[Patch] increase dbus_verbose readability</title>
	<published>2009-12-17T00:55:04Z</published>
	<updated>2009-12-17T00:55:04Z</updated>
	<author>
		<name>Ralf Habacker</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;_dbus_verbose is currently the prefered way to print debug information. 
&lt;br&gt;With the recent implementation it is sometime hard to determine the 
&lt;br&gt;exact source location. There is still the way to add the function name 
&lt;br&gt;manually, but this need additional manual efforts to keep the name in 
&lt;br&gt;sync with reality.
&lt;br&gt;&lt;br&gt;Modern compilers have build in support for determine source code 
&lt;br&gt;location like file name, line number and function names, which could be 
&lt;br&gt;used to reduce the required effort in this area.
&lt;br&gt;&lt;br&gt;The appended patch extends dbus_verbose by adding filename, line number 
&lt;br&gt;and function name to the output line like shown below
&lt;br&gt;&lt;br&gt;old:
&lt;br&gt;5616: Loaded value 256 for limit max_names_per_connection
&lt;br&gt;5616: Skipping non-.conf file basic.d
&lt;br&gt;&lt;br&gt;new:
&lt;br&gt;5616: bus\config-parser.c(2564):bus_config_parser_content Loaded value 
&lt;br&gt;256 for limit max_names_per_connection
&lt;br&gt;5616: bus\config-parser.c(3116):all_are_equiv Skipping non-.conf file 
&lt;br&gt;basic.d
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bus\config-parser.c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - filename
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(3116) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - line number
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all_are_equiv &amp;nbsp; - function name
&lt;br&gt;&lt;br&gt;&lt;br&gt;Are there any helpfull suggestions for this feature ?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&amp;nbsp;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;diff --git a/bus/dispatch.c b/bus/dispatch.c
&lt;br&gt;index f769a44..ef534ac 100644
&lt;br&gt;--- a/bus/dispatch.c
&lt;br&gt;+++ b/bus/dispatch.c
&lt;br&gt;@@ -4536,11 +4536,13 @@ bus_dispatch_test_conf (const DBusString *test_data_dir,
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (!check_add_match_all (context, baz))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_dbus_assert_not_reached (&amp;quot;AddMatch message failed&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+#ifndef DBUS_WIN
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (!check_get_connection_unix_user (context, baz))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_dbus_assert_not_reached (&amp;quot;GetConnectionUnixUser message failed&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (!check_get_connection_unix_process_id (context, baz))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_dbus_assert_not_reached (&amp;quot;GetConnectionUnixProcessID message failed&amp;quot;);
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (!check_list_services (context, baz))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_dbus_assert_not_reached (&amp;quot;ListActivatableNames message failed&amp;quot;);
&lt;br&gt;diff --git a/bus/test-main.c b/bus/test-main.c
&lt;br&gt;diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
&lt;br&gt;diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake
&lt;br&gt;diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
&lt;br&gt;index edf7de6..9d4ef8d 100644
&lt;br&gt;--- a/dbus/dbus-internals.c
&lt;br&gt;+++ b/dbus/dbus-internals.c
&lt;br&gt;@@ -329,6 +329,41 @@ _dbus_verbose_init (void)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+#ifdef DBUS_WIN 
&lt;br&gt;+#define DBUS_DIR_SEPARATOR '\\'
&lt;br&gt;+#else
&lt;br&gt;+#define DBUS_DIR_SEPARATOR '/'
&lt;br&gt;+#endif
&lt;br&gt;+
&lt;br&gt;+/** 
&lt;br&gt;+ remove source root from file path 
&lt;br&gt;+ the source root is determined by 
&lt;br&gt;+*/ 
&lt;br&gt;+static char *_dbus_file_path_extract_elements_from_tail(const char *file,int level)
&lt;br&gt;+{
&lt;br&gt;+	static int prefix = -1;
&lt;br&gt;+	char *p;
&lt;br&gt;+
&lt;br&gt;+	if (prefix == -1) 
&lt;br&gt;+	 &amp;nbsp;{
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;char *p = file + strlen(file);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prefix = 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (;p &amp;gt;= file;p--)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (*p == DBUS_DIR_SEPARATOR)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (++i &amp;gt;= level) 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prefix = p-file+1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+	return file+prefix;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;/**
&lt;br&gt;&amp;nbsp; * Implementation of dbus_is_verbose() macro if built with verbose logging
&lt;br&gt;&amp;nbsp; * enabled.
&lt;br&gt;@@ -350,7 +385,14 @@ _dbus_is_verbose_real (void)
&lt;br&gt;&amp;nbsp; * @param format printf-style format string.
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;void
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+_dbus_verbose_real (const char *file, 
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp;const int line, 
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp;const char *function, 
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp;const char *format,
&lt;br&gt;+#else
&lt;br&gt;&amp;nbsp;_dbus_verbose_real (const char *format,
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_list args;
&lt;br&gt;@@ -382,17 +424,24 @@ _dbus_verbose_real (const char *format,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;need_pid = TRUE;
&lt;br&gt;&amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;need_pid = FALSE;
&lt;br&gt;- &amp;nbsp;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_start (args, format);
&lt;br&gt;&amp;nbsp;#ifdef DBUS_USE_OUTPUT_DEBUG_STRING
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;char buf[1024];
&lt;br&gt;&amp;nbsp; &amp;nbsp;strcpy(buf,module_name);
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+ &amp;nbsp;vsprintf (buf+strlen(buf), &amp;quot;%s(%d):%s &amp;quot;,_dbus_file_path_extract_elements_from_tail(file,2),line,function);
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp; &amp;nbsp;vsprintf (buf+strlen(buf),format, args);
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_end (args);
&lt;br&gt;&amp;nbsp; &amp;nbsp;OutputDebugString(buf);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;#else
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+ &amp;nbsp;fprintf (stderr, &amp;quot;%s(%d):%s &amp;quot;,_dbus_file_path_extract_elements_from_tail(file,2),line,function);
&lt;br&gt;+#endif
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;vfprintf (stderr, format, args);
&lt;br&gt;&amp;nbsp; &amp;nbsp;va_end (args);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h
&lt;br&gt;index 8b5af8d..a79ee20 100644
&lt;br&gt;--- a/dbus/dbus-internals.h
&lt;br&gt;+++ b/dbus/dbus-internals.h
&lt;br&gt;@@ -83,12 +83,18 @@ void _dbus_warn_check_failed &amp;nbsp;(const char *format,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#ifdef DBUS_ENABLE_VERBOSE_MODE
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+#ifdef __VA_ARGS__
&lt;br&gt;+void _dbus_verbose_real &amp;nbsp; &amp;nbsp; &amp;nbsp; (const char *file, const int line, const char *function, 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const char *format,...) _DBUS_GNUC_PRINTF (1, 2);
&lt;br&gt;+# &amp;nbsp;define _dbus_verbose(fmt,...) _dbus_verbose_real( __FILE__,__LINE__,__FUNCTION__,fmt, ## __VA_ARGS__)
&lt;br&gt;+#else
&lt;br&gt;&amp;nbsp;void _dbus_verbose_real &amp;nbsp; &amp;nbsp; &amp;nbsp; (const char *format,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...) _DBUS_GNUC_PRINTF (1, 2);
&lt;br&gt;+# &amp;nbsp;define _dbus_verbose _dbus_verbose_real
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp;void _dbus_verbose_reset_real (void);
&lt;br&gt;&amp;nbsp;dbus_bool_t _dbus_is_verbose_real (void);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-# &amp;nbsp;define _dbus_verbose _dbus_verbose_real
&lt;br&gt;&amp;nbsp;# &amp;nbsp;define _dbus_verbose_reset _dbus_verbose_reset_real
&lt;br&gt;&amp;nbsp;# &amp;nbsp;define _dbus_is_verbose _dbus_is_verbose_real
&lt;br&gt;&amp;nbsp;#else
&lt;br&gt;diff --git a/dbus/dbus-mainloop.c b/dbus/dbus-mainloop.c
&lt;br&gt;diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26824994&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch--increase-dbus_verbose-readability-tp26824994p26824994.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819667</id>
	<title>Re: 60 secs logout delay when running emacs: Why ?</title>
	<published>2009-12-16T14:30:30Z</published>
	<updated>2009-12-16T14:30:30Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Quarta-feira 16. Dezembro 2009, às 21.21.52, Gerd Bavendiek escreveu:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; running Xubuntu Karmic and using Emacs, I'm always wondering about a
&lt;br&gt;&amp;gt; significant delay after clicking logout. Basically after having
&lt;br&gt;&amp;gt; clicked logout 60 secs nothing happens until the session is finally
&lt;br&gt;&amp;gt; closed.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I first close Emacs and then click logout, the session is closed
&lt;br&gt;&amp;gt; immediately. So the delay really seems to be linked to emacs. There is
&lt;br&gt;&amp;gt; no logout dialog AFAIK. Running emacs without my init-files did not
&lt;br&gt;&amp;gt; change anything.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This delay is a bit irritating, but most of the time not a real
&lt;br&gt;&amp;gt; problem. It is possible to shorten the delay by &amp;quot;clicking
&lt;br&gt;&amp;gt; around&amp;quot;. Typically switching to the workspace emacs is running in
&lt;br&gt;&amp;gt; makes the session terminate immediately. Occasionally clicking around
&lt;br&gt;&amp;gt; does not terminate the session and I have to wait.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So I just wanted to know which component causes the delay.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I straced emacs. After logout he ist happily running for about 60
&lt;br&gt;&amp;gt; secs. Then he gets SIGTERM 4 times.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I ran dbus-monitor &amp;gt; file and got an empty file (output buffering). I
&lt;br&gt;&amp;gt; compiled dbus 1.3.1 and ran it like so:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ./dbus-monitor | perl -ne 'print scalar localtime(), $_' &amp;gt; file
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I do see a lot of activities after clicking logout, then exactly
&lt;br&gt;&amp;gt; 60 secs nothing and another bulk of messages. To be honest: This is
&lt;br&gt;&amp;gt; beyond my skills, I cannot interpret this output (285 lines).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I really would appreciate if somebody could push me into the right
&lt;br&gt;&amp;gt; direction. Is it a bug, a misconfiguration or works a designed ?
&lt;br&gt;&amp;gt; emacs or xfce4-session ?
&lt;/div&gt;&lt;/div&gt;I think you're dumping the wrong protocol.
&lt;br&gt;&lt;br&gt;X logout is announced to the applications via XSM, not via D-Bus.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819667&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26819667/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/60-secs-logout-delay-when-running-emacs%3A-Why---tp26817838p26819667.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26817838</id>
	<title>60 secs logout delay when running emacs: Why ?</title>
	<published>2009-12-16T12:21:52Z</published>
	<updated>2009-12-16T12:21:52Z</updated>
	<author>
		<name>Gerd Bavendiek-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;running Xubuntu Karmic and using Emacs, I'm always wondering about a
&lt;br&gt;significant delay after clicking logout. Basically after having
&lt;br&gt;clicked logout 60 secs nothing happens until the session is finally
&lt;br&gt;closed.
&lt;br&gt;&lt;br&gt;If I first close Emacs and then click logout, the session is closed
&lt;br&gt;immediately. So the delay really seems to be linked to emacs. There is
&lt;br&gt;no logout dialog AFAIK. Running emacs without my init-files did not
&lt;br&gt;change anything.
&lt;br&gt;&lt;br&gt;This delay is a bit irritating, but most of the time not a real
&lt;br&gt;problem. It is possible to shorten the delay by &amp;quot;clicking
&lt;br&gt;around&amp;quot;. Typically switching to the workspace emacs is running in
&lt;br&gt;makes the session terminate immediately. Occasionally clicking around
&lt;br&gt;does not terminate the session and I have to wait.
&lt;br&gt;&lt;br&gt;So I just wanted to know which component causes the delay.
&lt;br&gt;&lt;br&gt;I straced emacs. After logout he ist happily running for about 60
&lt;br&gt;secs. Then he gets SIGTERM 4 times.
&lt;br&gt;&lt;br&gt;I ran dbus-monitor &amp;gt; file and got an empty file (output buffering). I
&lt;br&gt;compiled dbus 1.3.1 and ran it like so:
&lt;br&gt;&lt;br&gt;./dbus-monitor | perl -ne 'print scalar localtime(), $_' &amp;gt; file
&lt;br&gt;&lt;br&gt;Now I do see a lot of activities after clicking logout, then exactly
&lt;br&gt;60 secs nothing and another bulk of messages. To be honest: This is
&lt;br&gt;beyond my skills, I cannot interpret this output (285 lines).
&lt;br&gt;&lt;br&gt;I really would appreciate if somebody could push me into the right
&lt;br&gt;direction. Is it a bug, a misconfiguration or works a designed ?
&lt;br&gt;emacs or xfce4-session ?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Gerd
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817838&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/60-secs-logout-delay-when-running-emacs%3A-Why---tp26817838p26817838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26809122</id>
	<title>Re: Dbus asynchronous</title>
	<published>2009-12-16T02:32:07Z</published>
	<updated>2009-12-16T02:32:07Z</updated>
	<author>
		<name>Ville M. Vainio</name>
	</author>
	<content type="html">On Wed, Dec 16, 2009 at 9:24 AM, Vivek Anand &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809122&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vivek@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I am working on an application which is completely asynchronous. I want
&lt;br&gt;&amp;gt; to add dbus support to it. But I dont want to block between dbus method
&lt;br&gt;&amp;gt; calls.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there any way to bring out the dbus connection fd, so that I can add
&lt;br&gt;&amp;gt; it my current select loop, or is there any other dbus implimentation
&lt;br&gt;&amp;gt; which is completely asynchronous?
&lt;br&gt;&lt;br&gt;Any chance you could just use the glib mainloop as your select loop?
&lt;br&gt;That's the way dbus is usually used, so you would at least avoid
&lt;br&gt;creating your own private problem set ;-).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ville M. Vainio
&lt;br&gt;&lt;a href=&quot;http://tinyurl.com/vainio&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tinyurl.com/vainio&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809122&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dbus-asynchronous-tp26807212p26809122.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808689</id>
	<title>Re: Dbus asynchronous</title>
	<published>2009-12-16T01:42:23Z</published>
	<updated>2009-12-16T01:42:23Z</updated>
	<author>
		<name>Jérémie Dimino</name>
	</author>
	<content type="html">Le mercredi 16 décembre 2009 à 12:54 +0530, Vivek Anand a écrit :
&lt;br&gt;&amp;gt; Is there any way to bring out the dbus connection fd, so that I can add 
&lt;br&gt;&amp;gt; it my current select loop, or is there any other dbus implimentation 
&lt;br&gt;&amp;gt; which is completely asynchronous?
&lt;br&gt;&lt;br&gt;I made an implementation of D-Bus in ocaml [1]. It uses cooperative
&lt;br&gt;threads [2], so it is completely asynchronous.
&lt;br&gt;&lt;br&gt;&amp;nbsp;[1] &lt;a href=&quot;https://forge.ocamlcore.org/projects/obus/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://forge.ocamlcore.org/projects/obus/&lt;/a&gt;&lt;br&gt;&amp;nbsp;[2] &lt;a href=&quot;http://ocsigen.org/lwt/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ocsigen.org/lwt/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jérémie
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808689&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dbus-asynchronous-tp26807212p26808689.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807740</id>
	<title>Re: Dbus asynchronous</title>
	<published>2009-12-16T00:22:32Z</published>
	<updated>2009-12-16T00:22:32Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Quarta-feira 16. Dezembro 2009, às 08.24.44, Vivek Anand escreveu:
&lt;br&gt;&amp;gt; Hello all,
&lt;br&gt;&amp;gt; I am working on an application which is completely asynchronous. I want
&lt;br&gt;&amp;gt; to add dbus support to it. But I dont want to block between dbus method
&lt;br&gt;&amp;gt; calls.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there any way to bring out the dbus connection fd, so that I can add
&lt;br&gt;&amp;gt; it my current select loop, or is there any other dbus implimentation
&lt;br&gt;&amp;gt; which is completely asynchronous?
&lt;br&gt;&lt;br&gt;There are methods for that in DBusConnection, plus the DBusWatcher and 
&lt;br&gt;DBusTimeout structures.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807740&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26807740/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dbus-asynchronous-tp26807212p26807740.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807212</id>
	<title>Dbus asynchronous</title>
	<published>2009-12-15T23:24:44Z</published>
	<updated>2009-12-15T23:24:44Z</updated>
	<author>
		<name>vivek-26</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;I am working on an application which is completely asynchronous. I want 
&lt;br&gt;to add dbus support to it. But I dont want to block between dbus method 
&lt;br&gt;calls.
&lt;br&gt;&lt;br&gt;Is there any way to bring out the dbus connection fd, so that I can add 
&lt;br&gt;it my current select loop, or is there any other dbus implimentation 
&lt;br&gt;which is completely asynchronous?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Vivek Anand
&lt;br&gt;HiPro IT Solutions
&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807212&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dbus-asynchronous-tp26807212p26807212.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798958</id>
	<title>RE: [PATCH] use montonic clock instead of gettimeofday</title>
	<published>2009-12-15T09:48:27Z</published>
	<updated>2009-12-15T09:48:27Z</updated>
	<author>
		<name>Tom Hughes-6</name>
	</author>
	<content type="html">&amp;gt; IMHO you should update the documentation for _dbus_get_current_time or,
&lt;br&gt;&amp;gt; even better, rename it to reflect the new semantics. It does not return
&lt;br&gt;&amp;gt; 'current' time as in gettimeofday any more, because the meaning of
&lt;br&gt;&amp;gt; absolute time &amp;nbsp;values is now unspecified.
&lt;br&gt;&lt;br&gt;Agreed.
&lt;br&gt;&lt;br&gt;&amp;gt; That part of the patch certainly looks broken. The
&lt;br&gt;&amp;gt; pthread_condattr_setclock() would need to come after
&lt;br&gt;&amp;gt; pthread_condattr_init().
&lt;br&gt;&amp;gt; And further below the new end_time.tv_nsec calculation is completely off
&lt;br&gt;&amp;gt; (by 3 to 6 orders of magnitude).
&lt;br&gt;&lt;br&gt;Yes, you're right on these.
&lt;br&gt;&lt;br&gt;I'm not going to resubmit that part of the patch, since the correct version has already been committed (ae24bb35e2ee3ecde990f55852982b573754ec43). :)
&lt;br&gt;&lt;br&gt;The first part of the patch was submitted as a bug here: &lt;a href=&quot;https://bugs.freedesktop.org/show_bug.cgi?id=25624&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.freedesktop.org/show_bug.cgi?id=25624&lt;/a&gt;&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;________________________________________
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798958&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Joerg.Barfurth@...&lt;/a&gt; [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798958&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Joerg.Barfurth@...&lt;/a&gt;] On Behalf Of Joerg Barfurth [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798958&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jub@...&lt;/a&gt;]
&lt;br&gt;Sent: Tuesday, December 15, 2009 12:55 AM
&lt;br&gt;To: Tom Hughes
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798958&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [PATCH] use montonic clock instead of gettimeofday
&lt;br&gt;&lt;br&gt;Tom Hughes schrieb:
&lt;br&gt;&amp;gt; Greetings,
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Greetings. Just noticed this patch.
&lt;br&gt;&lt;br&gt;&amp;gt; Attached is a patch to use the monotonic clock instead of gettimeofday()
&lt;br&gt;&amp;gt; in _dbus_get_current_time(), which prevents issues when
&lt;br&gt;&amp;gt; _dbus_get_current_time() is used to calculate timeouts and the system
&lt;br&gt;&amp;gt; time changes (e.g., in _dbus_connection_block_pending_call()).
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;IMHO you should update the documentation for _dbus_get_current_time or,
&lt;br&gt;even better, rename it to reflect the new semantics. It does not return
&lt;br&gt;'current' time as in gettimeofday any more, because the meaning of
&lt;br&gt;absolute time &amp;nbsp;values is now unspecified.
&lt;br&gt;&lt;br&gt;If this function is used in DBus for anything other than elapsed time or
&lt;br&gt;timeout calculations, the old version would need to be kept as well.
&lt;br&gt;&lt;br&gt;&amp;gt; It also contains a patch for pthread_cond_timedwait to use the monotonic
&lt;br&gt;&amp;gt; clock, but this appears to have already been fixed, so you can ignore
&lt;br&gt;&amp;gt; that part of the patch.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;That part of the patch certainly looks broken. The
&lt;br&gt;pthread_condattr_setclock() would need to come after
&lt;br&gt;pthread_condattr_init().
&lt;br&gt;&lt;br&gt;And further below the new end_time.tv_nsec calculation is completely off
&lt;br&gt;(by 3 to 6 orders of magnitude).
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;- Jörg B
&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798958&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--use-montonic-clock-instead-of-gettimeofday-tp26731464p26798958.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26792049</id>
	<title>Re: [PATCH] use montonic clock instead of gettimeofday</title>
	<published>2009-12-15T01:36:43Z</published>
	<updated>2009-12-15T01:36:43Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Terça-feira 15 Dezembro 2009, às 09:55:51, Joerg Barfurth escreveu:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Tom Hughes schrieb:
&lt;br&gt;&amp;gt; &amp;gt; Greetings,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Greetings. Just noticed this patch.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Attached is a patch to use the monotonic clock instead of gettimeofday()
&lt;br&gt;&amp;gt; &amp;gt; in _dbus_get_current_time(), which prevents issues when
&lt;br&gt;&amp;gt; &amp;gt; _dbus_get_current_time() is used to calculate timeouts and the system
&lt;br&gt;&amp;gt; &amp;gt; time changes (e.g., in _dbus_connection_block_pending_call()).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; IMHO you should update the documentation for _dbus_get_current_time or,
&lt;br&gt;&amp;gt; even better, rename it to reflect the new semantics. It does not return
&lt;br&gt;&amp;gt; 'current' time as in gettimeofday any more, because the meaning of
&lt;br&gt;&amp;gt; absolute time &amp;nbsp;values is now unspecified.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If this function is used in DBus for anything other than elapsed time or
&lt;br&gt;&amp;gt; timeout calculations, the old version would need to be kept as well.
&lt;/div&gt;&lt;/div&gt;The bug report for this issue is Bug 25624.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; It also contains a patch for pthread_cond_timedwait to use the monotonic
&lt;br&gt;&amp;gt; &amp;gt; clock, but this appears to have already been fixed, so you can ignore
&lt;br&gt;&amp;gt; &amp;gt; that part of the patch.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That part of the patch certainly looks broken. The
&lt;br&gt;&amp;gt; pthread_condattr_setclock() would need to come after
&lt;br&gt;&amp;gt; pthread_condattr_init().
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And further below the new end_time.tv_nsec calculation is completely off
&lt;br&gt;&amp;gt; (by 3 to 6 orders of magnitude).
&lt;/div&gt;&lt;/div&gt;Apparently that part of the patch was already applied in current 1.3 codebase. 
&lt;br&gt;Can you check there if it looks ok?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26792049&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26792049/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--use-montonic-clock-instead-of-gettimeofday-tp26731464p26792049.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26791707</id>
	<title>Re: [PATCH] use montonic clock instead of gettimeofday</title>
	<published>2009-12-15T00:55:51Z</published>
	<updated>2009-12-15T00:55:51Z</updated>
	<author>
		<name>Joerg Barfurth</name>
	</author>
	<content type="html">Tom Hughes schrieb:
&lt;br&gt;&amp;gt; Greetings,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Greetings. Just noticed this patch.
&lt;br&gt;&lt;br&gt;&amp;gt; Attached is a patch to use the monotonic clock instead of gettimeofday() 
&lt;br&gt;&amp;gt; in _dbus_get_current_time(), which prevents issues when 
&lt;br&gt;&amp;gt; _dbus_get_current_time() is used to calculate timeouts and the system 
&lt;br&gt;&amp;gt; time changes (e.g., in _dbus_connection_block_pending_call()).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;IMHO you should update the documentation for _dbus_get_current_time or, 
&lt;br&gt;even better, rename it to reflect the new semantics. It does not return 
&lt;br&gt;'current' time as in gettimeofday any more, because the meaning of 
&lt;br&gt;absolute time &amp;nbsp;values is now unspecified.
&lt;br&gt;&lt;br&gt;If this function is used in DBus for anything other than elapsed time or 
&lt;br&gt;timeout calculations, the old version would need to be kept as well.
&lt;br&gt;&lt;br&gt;&amp;gt; It also contains a patch for pthread_cond_timedwait to use the monotonic 
&lt;br&gt;&amp;gt; clock, but this appears to have already been fixed, so you can ignore 
&lt;br&gt;&amp;gt; that part of the patch.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;That part of the patch certainly looks broken. The 
&lt;br&gt;pthread_condattr_setclock() would need to come after 
&lt;br&gt;pthread_condattr_init().
&lt;br&gt;&lt;br&gt;And further below the new end_time.tv_nsec calculation is completely off 
&lt;br&gt;(by 3 to 6 orders of magnitude).
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;- Jörg B
&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26791707&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--use-montonic-clock-instead-of-gettimeofday-tp26731464p26791707.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26760936</id>
	<title>Re: Message did not receive a reply (timeout by message bus)</title>
	<published>2009-12-12T12:28:19Z</published>
	<updated>2009-12-12T12:28:19Z</updated>
	<author>
		<name>Oded Rimon</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ** (openvrml-player:19497): CRITICAL **: Browser creation failed:
&lt;br&gt;Message did not receive a reply
&lt;br&gt;&amp;gt; (timeout by message bus)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; **
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ** ERROR:(../../src/openvrml-player/curlbrowserhost.cpp:347):void
&lt;br&gt;&amp;gt; openvrml_player_curl_browser_host_load_url(OpenvrmlPlayerCurlBrowserHost*,
&lt;br&gt;const char*):
&lt;br&gt;&amp;gt; assertion failed: (host-&amp;gt;priv-&amp;gt;browser)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aborted
&lt;br&gt;&lt;br&gt;&lt;br&gt;I'm having the same problem...
&lt;br&gt;Does anyone know what can be done?
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760936&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Message-did-not-receive-a-reply-%28timeout-by-message-bus%29-tp19873298p26760936.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26750932</id>
	<title>[PATCH] dbus-daemon-launch-helper: fix build with libxml</title>
	<published>2009-12-11T12:05:49Z</published>
	<updated>2009-12-11T12:05:49Z</updated>
	<author>
		<name>Robert Schwebel</name>
	</author>
	<content type="html">From 8032e967a4684e93ab25067b1b4344dbd8d0526d Mon Sep 17 00:00:00 2001
&lt;br&gt;From: Peter Korsgaard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26750932&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jacmet@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Sun, 31 May 2009 09:37:49 +0200
&lt;br&gt;&lt;br&gt;dbus-daemon-launch-helper links with the trival config parser, which
&lt;br&gt;doesn't provide bus_config_parser_check_doctype(), like the big parser does.
&lt;br&gt;The libxml loader unfortunately wants to call it, so this breaks the build.
&lt;br&gt;&lt;br&gt;Fix it by including a dummy bus_config_parser_check_doctype() in the trivial
&lt;br&gt;config parser.
&lt;br&gt;&lt;br&gt;Signed-off-by: Peter Korsgaard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26750932&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jacmet@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Marc Kleine-Budde &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26750932&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mkl@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Robert Schwebel &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26750932&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r.schwebel@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;bus/config-parser-trivial.c | &amp;nbsp; &amp;nbsp;8 ++++++++
&lt;br&gt;&amp;nbsp;1 files changed, 8 insertions(+), 0 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/bus/config-parser-trivial.c b/bus/config-parser-trivial.c
&lt;br&gt;index 98d554e..a936371 100644
&lt;br&gt;--- a/bus/config-parser-trivial.c
&lt;br&gt;+++ b/bus/config-parser-trivial.c
&lt;br&gt;@@ -310,6 +310,14 @@ bus_config_parser_get_service_dirs (BusConfigParser *parser)
&lt;br&gt;&amp;nbsp; &amp;nbsp;return &amp;parser-&amp;gt;service_dirs;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+dbus_bool_t
&lt;br&gt;+bus_config_parser_check_doctype (BusConfigParser &amp;nbsp; *parser,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*doctype,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DBusError &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *error)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return TRUE;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;#ifdef DBUS_BUILD_TESTS
&lt;br&gt;&amp;nbsp;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;&amp;nbsp;#include &amp;quot;test.h&amp;quot;
&lt;br&gt;-- 
&lt;br&gt;1.6.3.1
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pengutronix e.K. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;Industrial Linux Solutions &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;a href=&quot;http://www.pengutronix.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pengutronix.de/&lt;/a&gt;&amp;nbsp; |
&lt;br&gt;Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 &amp;nbsp; &amp;nbsp;|
&lt;br&gt;Amtsgericht Hildesheim, HRA 2686 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Fax: &amp;nbsp; +49-5121-206917-5555 |
&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26750932&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--dbus-daemon-launch-helper%3A-fix-build-with-libxml-tp26750932p26750932.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26739696</id>
	<title>Re: interface dbus method call</title>
	<published>2009-12-10T23:25:31Z</published>
	<updated>2009-12-10T23:25:31Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Sexta-feira 11. Dezembro 2009, às 00.16.14, jaikumar Ganesh escreveu:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Correct me if I am reading this wrong:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reply = dbus_connection_send_with_reply(conn, msg,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;call,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeout_ms);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (reply == TRUE) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dbus_pending_call_set_notify(call,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbus_func_args_async_callback,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pending,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; is what I am using - so I assume the callback will be called when the
&lt;br&gt;&amp;gt; function call times out or is done.
&lt;br&gt;&amp;gt; In my case, since timeout_ms = -1, the default timeout value of 25
&lt;br&gt;&amp;gt; secs is being used and then the callback returns after the timeout.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As the interface is not up, I would assume the callback to come back
&lt;br&gt;&amp;gt; immediately with a failure.
&lt;/div&gt;&lt;/div&gt;Nothing happens immediately, except for trying to send a message while you're 
&lt;br&gt;disconnected.
&lt;br&gt;&lt;br&gt;The message needs to be sent to the daemon, that will send to the remote 
&lt;br&gt;program, which will in turn say that the interface isn't up by replying with 
&lt;br&gt;an error, which the daemon will relay back to you.
&lt;br&gt;&lt;br&gt;So your callback will be called. Just wait for it to be called.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26739696&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26739696/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/interface-dbus-method-call-tp26723751p26739696.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26736221</id>
	<title>Re: interface dbus method call</title>
	<published>2009-12-10T15:16:14Z</published>
	<updated>2009-12-10T15:16:14Z</updated>
	<author>
		<name>jaikumar Ganesh</name>
	</author>
	<content type="html">Correct me if I am reading this wrong:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reply = dbus_connection_send_with_reply(conn, msg,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;call,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeout_ms);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (reply == TRUE) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dbus_pending_call_set_notify(call,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbus_func_args_async_callback,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pending,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;is what I am using - so I assume the callback will be called when the
&lt;br&gt;function call times out or is done.
&lt;br&gt;In my case, since timeout_ms = -1, the default timeout value of 25
&lt;br&gt;secs is being used and then the callback returns after the timeout.
&lt;br&gt;&lt;br&gt;As the interface is not up, I would assume the callback to come back
&lt;br&gt;immediately with a failure.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;On Thu, Dec 10, 2009 at 3:01 PM, Thiago Macieira &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736221&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thiago@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Em Quinta-feira 10. Dezembro 2009, às 19.38.15, jaikumar Ganesh escreveu:
&lt;br&gt;&amp;gt;&amp;gt; Unfortunately, I don't see that happening. I am using
&lt;br&gt;&amp;gt;&amp;gt; dbus_connection_send_with_reply and I get back a pending callback. The
&lt;br&gt;&amp;gt;&amp;gt; interface is not up at this point, and I was expecting the call to
&lt;br&gt;&amp;gt;&amp;gt; fail. Anyway the interface comes up later but the call just hangs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It will fail. But it needs to be sent to the server first.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You need to wait for the pending call to be finished.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If the interface is up and running, before I make the call, everything is
&lt;br&gt;&amp;gt;&amp;gt;  good.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;gt;  Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;gt;      PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;gt;      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; dbus mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736221&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736221&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/interface-dbus-method-call-tp26723751p26736221.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26736158</id>
	<title>Re: [PATCH] use montonic clock instead of gettimeofday</title>
	<published>2009-12-10T15:05:31Z</published>
	<updated>2009-12-10T15:05:31Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Quinta-feira 10. Dezembro 2009, às 18.27.23, Tom Hughes escreveu:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Greetings,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Attached is a patch to use the monotonic clock instead of
&lt;br&gt;&amp;gt; gettimeofday() in _dbus_get_current_time(), which prevents issues when
&lt;br&gt;&amp;gt; _dbus_get_current_time() is used to calculate timeouts and the system
&lt;br&gt;&amp;gt; time changes (e.g., in _dbus_connection_block_pending_call()).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It also contains a patch for pthread_cond_timedwait to use the
&lt;br&gt;&amp;gt; monotonic clock, but this appears to have already been fixed, so you
&lt;br&gt;&amp;gt; can ignore that part of the patch.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's based off dbus version 1.1.20, but should apply to top of trunk.
&lt;/div&gt;&lt;/div&gt;Thanks Tom, patch looks good.
&lt;br&gt;&lt;br&gt;Can you add it to bugzilla so we don't lose track of it? Please submit it as 
&lt;br&gt;the output of git format-patch, so we can credit you properly with the change.
&lt;br&gt;&lt;br&gt;PS: my autoconf/automake are very rusty, but don't you need to get the library 
&lt;br&gt;to link to librt?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736158&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26736158/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--use-montonic-clock-instead-of-gettimeofday-tp26731464p26736158.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26736157</id>
	<title>Re: interface dbus method call</title>
	<published>2009-12-10T15:01:29Z</published>
	<updated>2009-12-10T15:01:29Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Quinta-feira 10. Dezembro 2009, às 19.38.15, jaikumar Ganesh escreveu:
&lt;br&gt;&amp;gt; Unfortunately, I don't see that happening. I am using
&lt;br&gt;&amp;gt; dbus_connection_send_with_reply and I get back a pending callback. The
&lt;br&gt;&amp;gt; interface is not up at this point, and I was expecting the call to
&lt;br&gt;&amp;gt; fail. Anyway the interface comes up later but the call just hangs.
&lt;br&gt;&lt;br&gt;It will fail. But it needs to be sent to the server first.
&lt;br&gt;&lt;br&gt;You need to wait for the pending call to be finished.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If the interface is up and running, before I make the call, everything is
&lt;br&gt;&amp;gt; &amp;nbsp;good.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736157&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26736157/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/interface-dbus-method-call-tp26723751p26736157.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26732366</id>
	<title>Re: interface dbus method call</title>
	<published>2009-12-10T10:38:15Z</published>
	<updated>2009-12-10T10:38:15Z</updated>
	<author>
		<name>jaikumar Ganesh</name>
	</author>
	<content type="html">Unfortunately, I don't see that happening. I am using
&lt;br&gt;dbus_connection_send_with_reply and I get back a pending callback. The
&lt;br&gt;interface is not up at this point, and I was expecting the call to
&lt;br&gt;fail. Anyway the interface comes up later but the call just hangs.
&lt;br&gt;&lt;br&gt;If the interface is up and running, before I make the call, everything is good.
&lt;br&gt;&lt;br&gt;Has anyone else seen this ?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Jaikumar
&lt;br&gt;&lt;br&gt;On Thu, Dec 10, 2009 at 3:34 AM, Thiago Macieira &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26732366&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thiago@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Em Quinta-feira 10 Dezembro 2009, às 09:31:28, jaikumar Ganesh escreveu:
&lt;br&gt;&amp;gt;&amp;gt; Hello folks:
&lt;br&gt;&amp;gt;&amp;gt;    Is there a way for me to check if someone has registered an
&lt;br&gt;&amp;gt;&amp;gt; interface on whom I will be invoking a method call using:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; dbus_message_new_method_call          (       const char *     destination,
&lt;br&gt;&amp;gt;&amp;gt;               const char *    path,
&lt;br&gt;&amp;gt;&amp;gt;               const char *    interface,
&lt;br&gt;&amp;gt;&amp;gt;               const char *    method
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I basically want to abort if the interface is not registered.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The way to find out is to make the call. If it returns with error, then it
&lt;br&gt;&amp;gt; didn't exist (or the path didn't or the destination didn't).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;gt;  Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;gt;      PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;gt;      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; dbus mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26732366&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26732366&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/interface-dbus-method-call-tp26723751p26732366.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26731464</id>
	<title>[PATCH] use montonic clock instead of gettimeofday</title>
	<published>2009-12-10T09:27:23Z</published>
	<updated>2009-12-10T09:27:23Z</updated>
	<author>
		<name>Tom Hughes-6</name>
	</author>
	<content type="html">Greetings,
&lt;br&gt;&lt;br&gt;Attached is a patch to use the monotonic clock instead of &amp;nbsp;
&lt;br&gt;gettimeofday() in _dbus_get_current_time(), which prevents issues when &amp;nbsp;
&lt;br&gt;_dbus_get_current_time() is used to calculate timeouts and the system &amp;nbsp;
&lt;br&gt;time changes (e.g., in _dbus_connection_block_pending_call()).
&lt;br&gt;&lt;br&gt;It also contains a patch for pthread_cond_timedwait to use the &amp;nbsp;
&lt;br&gt;monotonic clock, but this appears to have already been fixed, so you &amp;nbsp;
&lt;br&gt;can ignore that part of the patch.
&lt;br&gt;&lt;br&gt;It's based off dbus version 1.1.20, but should apply to top of trunk.
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26731464&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;dbus-monotonic-clock.patch&lt;/strong&gt; (4K) &lt;a href=&quot;http://old.nabble.com/attachment/26731464/0/dbus-monotonic-clock.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--use-montonic-clock-instead-of-gettimeofday-tp26731464p26731464.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26729680</id>
	<title>Re: dbus-glib bindings on WinXP with mingw compiler</title>
	<published>2009-12-10T07:51:43Z</published>
	<updated>2009-12-10T07:51:43Z</updated>
	<author>
		<name>Tor Lillqvist</name>
	</author>
	<content type="html">In &lt;a href=&quot;http://tml.pp.fi/dbus-glib.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tml.pp.fi/dbus-glib.diff&lt;/a&gt;&amp;nbsp;you will find some patches I used
&lt;br&gt;when building dbus-glib for Windows a month or so ago.
&lt;br&gt;&lt;br&gt;--tml
&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26729680&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbus-glib-bindings-on-WinXP-with-mingw-compiler-tp26729356p26729680.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26729356</id>
	<title>dbus-glib bindings on WinXP with mingw compiler</title>
	<published>2009-12-10T07:21:02Z</published>
	<updated>2009-12-10T07:21:02Z</updated>
	<author>
		<name>nihil-3</name>
	</author>
	<content type="html">I tried to compile dbus-glib-0.82 on winxp using the mingw/msys tools using the standard
&lt;br&gt;configure, make, make install steps. I used dbus-mingw-1.2.4-1-lib and dbus-mingw-1.2.4-1-bin
&lt;br&gt;as the dbus implementation from the sourceforge.net page with an custom dbus-1.pc for pkg-config.
&lt;br&gt;While configure runs through without problems compilations fails with:
&lt;br&gt;make[4]: Entering directory `/home/root/mingw-additional/dbus-glib-0.82/test/core'
&lt;br&gt;gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../dbus -I../.. -I../../dbus -Ic:/mingw/include/dbus-1.0 -Ic:/mingw/lib/dbus-1.0/include &amp;nbsp; -mms-bitfields -Ic:/mingw/include/glib-2.0 -Ic:/mingw/lib/glib-2.0/include &amp;nbsp; -DDBUS_COMPILATION &amp;nbsp;-I/mingw/include -I/usr/local/include &amp;nbsp;-g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -fno-strict-aliasing -MT test-profile.o -MD -MP -MF .deps/test-profile.Tpo -c -o test-profile.o test-profile.c
&lt;br&gt;test-profile.c:32:24: error: sys/socket.h: No such file or directory
&lt;br&gt;test-profile.c:33:20: error: sys/un.h: No such file or directory
&lt;br&gt;test-profile.c:34:24: error: netinet/in.h: No such file or directory
&lt;br&gt;test-profile.c: In function 'plain_sockets_new_client_watch':
&lt;br&gt;test-profile.c:757: error: storage size of 'addr' isn't known
&lt;br&gt;test-profile.c:771: warning: implicit declaration of function 'accept'
&lt;br&gt;test-profile.c:771: warning: nested extern declaration of 'accept'
&lt;br&gt;test-profile.c:757: warning: unused variable 'addr'
&lt;br&gt;test-profile.c: In function 'plain_sockets_init_server':
&lt;br&gt;test-profile.c:801: error: storage size of 'addr' isn't known
&lt;br&gt;test-profile.c:820: warning: implicit declaration of function 'socket'
&lt;br&gt;test-profile.c:820: warning: nested extern declaration of 'socket'
&lt;br&gt;test-profile.c:820: error: 'PF_UNIX' undeclared (first use in this function)
&lt;br&gt;test-profile.c:820: error: (Each undeclared identifier is reported only once
&lt;br&gt;test-profile.c:820: error: for each function it appears in.)
&lt;br&gt;test-profile.c:820: error: 'SOCK_STREAM' undeclared (first use in this function)
&lt;br&gt;test-profile.c:830: error: 'AF_UNIX' undeclared (first use in this function)
&lt;br&gt;test-profile.c:844: warning: implicit declaration of function 'S_ISSOCK'
&lt;br&gt;test-profile.c:844: warning: nested extern declaration of 'S_ISSOCK'
&lt;br&gt;test-profile.c:851: warning: implicit declaration of function 'bind'
&lt;br&gt;test-profile.c:851: warning: nested extern declaration of 'bind'
&lt;br&gt;test-profile.c:858: warning: implicit declaration of function 'listen'
&lt;br&gt;test-profile.c:858: warning: nested extern declaration of 'listen'
&lt;br&gt;test-profile.c:801: warning: unused variable 'addr'
&lt;br&gt;test-profile.c: In function 'plain_sockets_thread_func':
&lt;br&gt;test-profile.c:940: error: storage size of 'addr' isn't known
&lt;br&gt;test-profile.c:947: error: 'PF_UNIX' undeclared (first use in this function)
&lt;br&gt;test-profile.c:947: error: 'SOCK_STREAM' undeclared (first use in this function)
&lt;br&gt;test-profile.c:957: error: 'AF_UNIX' undeclared (first use in this function)
&lt;br&gt;test-profile.c:970: warning: implicit declaration of function 'connect'
&lt;br&gt;test-profile.c:970: warning: nested extern declaration of 'connect'
&lt;br&gt;test-profile.c:940: warning: unused variable 'addr'
&lt;br&gt;&lt;br&gt;Without knowing exactly what i am speaking about for me it seems that the files in test/core are not 
&lt;br&gt;windows compatible. Just out of curiosity a made a patch against the makefile in that folder to not compile
&lt;br&gt;anything. This is the patch:
&lt;br&gt;$ cat Makefile-dbus-glib-0.82-test-core.patch 
&lt;br&gt;--- Makefile.orig &amp;nbsp; &amp;nbsp; &amp;nbsp; 2009-12-09 09:46:10 +0000
&lt;br&gt;+++ Makefile &amp;nbsp; &amp;nbsp;2009-12-09 09:46:47 +0000
&lt;br&gt;@@ -445,8 +445,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test-profile.c
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;test_profile_LDADD = $(DBUS_GLIB_THREADS_LIBS) $(top_builddir)/dbus/libdbus-glib-1.la 
&lt;br&gt;-all: $(BUILT_SOURCES)
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; $(MAKE) $(AM_MAKEFLAGS) all-am
&lt;br&gt;+#all: $(BUILT_SOURCES)
&lt;br&gt;+# &amp;nbsp; &amp;nbsp; &amp;nbsp;$(MAKE) $(AM_MAKEFLAGS) all-am
&lt;br&gt;+all:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;.SUFFIXES:
&lt;br&gt;&amp;nbsp;.SUFFIXES: .c .lo .o .obj
&lt;br&gt;@@ -751,8 +752,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(MAKE) $(AM_MAKEFLAGS) check-am
&lt;br&gt;&amp;nbsp;all-am: Makefile $(PROGRAMS)
&lt;br&gt;&amp;nbsp;installdirs:
&lt;br&gt;-install: $(BUILT_SOURCES)
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; $(MAKE) $(AM_MAKEFLAGS) install-am
&lt;br&gt;+#install: $(BUILT_SOURCES)
&lt;br&gt;+# &amp;nbsp; &amp;nbsp; &amp;nbsp;$(MAKE) $(AM_MAKEFLAGS) install-am
&lt;br&gt;+install:
&lt;br&gt;&amp;nbsp;install-exec: install-exec-am
&lt;br&gt;&amp;nbsp;install-data: install-data-am
&lt;br&gt;&amp;nbsp;uninstall: uninstall-am
&lt;br&gt;&lt;br&gt;After this modification i was quite surprised because make and make install were successful.
&lt;br&gt;It seems as if dbus-glib code is portable enough but not the tests.
&lt;br&gt;I used the following to compile and install dbus-glib:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./configure --disable-tests --disable-doxygen-docs || exit
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cd test/core
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; patch -p0 -i ../../../Makefile-dbus-glib-0.82-test-core.patch || exit
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cd ../../
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; make || exit
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; make install || exit
&lt;br&gt;I hope that this information is useful for somebody else.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26729356&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbus-glib-bindings-on-WinXP-with-mingw-compiler-tp26729356p26729356.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26725811</id>
	<title>Re: interface dbus method call</title>
	<published>2009-12-10T03:34:55Z</published>
	<updated>2009-12-10T03:34:55Z</updated>
	<author>
		<name>Bugzilla from thiago@kde.org</name>
	</author>
	<content type="html">Em Quinta-feira 10 Dezembro 2009, às 09:31:28, jaikumar Ganesh escreveu:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello folks:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Is there a way for me to check if someone has registered an
&lt;br&gt;&amp;gt; interface on whom I will be invoking a method call using:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; dbus_message_new_method_call &amp;nbsp;	( &amp;nbsp;	const char * &amp;nbsp; 	 destination,
&lt;br&gt;&amp;gt; 		const char * &amp;nbsp;	path,
&lt;br&gt;&amp;gt; 		const char * &amp;nbsp;	interface,
&lt;br&gt;&amp;gt; 		const char * &amp;nbsp;	method
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I basically want to abort if the interface is not registered.
&lt;/div&gt;&lt;/div&gt;The way to find out is to make the call. If it returns with error, then it 
&lt;br&gt;didn't exist (or the path didn't or the destination didn't).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
&lt;br&gt;&amp;nbsp; Senior Product Manager - Nokia, Qt Development Frameworks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PGP/GPG: 0x6EF45358; fingerprint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; E067 918B B660 DBD1 105C &amp;nbsp;966C 33F5 F005 6EF4 5358
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26725811&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (197 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26725811/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/interface-dbus-method-call-tp26723751p26725811.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26723751</id>
	<title>interface dbus method call</title>
	<published>2009-12-10T00:31:28Z</published>
	<updated>2009-12-10T00:31:28Z</updated>
	<author>
		<name>jaikumar Ganesh</name>
	</author>
	<content type="html">Hello folks:
&lt;br&gt;&amp;nbsp; &amp;nbsp;Is there a way for me to check if someone has registered an
&lt;br&gt;interface on whom I will be invoking a method call using:
&lt;br&gt;&lt;br&gt;dbus_message_new_method_call &amp;nbsp;	( &amp;nbsp;	const char * &amp;nbsp; 	 destination,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const char * &amp;nbsp;	path,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const char * &amp;nbsp;	interface,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const char * &amp;nbsp;	method	
&lt;br&gt;&lt;br&gt;I basically want to abort if the interface is not registered.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Jaikumar
&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26723751&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/interface-dbus-method-call-tp26723751p26723751.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26664212</id>
	<title>New dbus-java release</title>
	<published>2009-12-06T03:51:25Z</published>
	<updated>2009-12-06T03:51:25Z</updated>
	<author>
		<name>Matthew Johnson-3</name>
	</author>
	<content type="html">I've released dbus-java 2.7. Tarballs here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://dbus.freedesktop.org/releases/dbus-java/dbus-java-2.7.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbus.freedesktop.org/releases/dbus-java/dbus-java-2.7.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Changelog:
&lt;br&gt;&lt;br&gt;Version 2.7: 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;- Fix bug in disconnected signal/exception handling (Spotted by
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Serkan Kaba &amp;lt;serkan_kaba -at- yahoo -dot- com&amp;gt;) 
&lt;br&gt;&amp;nbsp; &amp;nbsp;- Fix bug in empty signals (Spotted by Daniel Wagner &amp;lt;Daniel -dot-
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wagner -at- bmw-carit -dot- de&amp;gt;) 
&lt;br&gt;&amp;nbsp; &amp;nbsp;- Fix bug in maps containing complex types (Spotted by Tim Court &amp;lt;tim
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-dot- court -at- venture3systems -dot- com&amp;gt;) 
&lt;br&gt;&amp;nbsp; &amp;nbsp;- Fix signal handling bug in DBusDaemon (Spotted by Markus Gaebelein
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Markus -dot- Gaebelein -at- fiducia -dot- de&amp;gt;) 
&lt;br&gt;&amp;nbsp; &amp;nbsp;- Make MessageReader/Writer use Buffered streams to try and improve
&lt;br&gt;&amp;nbsp; &amp;nbsp;performance 
&lt;br&gt;&amp;nbsp; &amp;nbsp;- Support reading session bus address from file in $HOME 
&lt;br&gt;&amp;nbsp; &amp;nbsp;- Fix TCP cookie timestamp problems (Report/fix from Johannes Felten
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;johannesfelten -at- googlemail -dot- com&amp;gt;) 
&lt;br&gt;&amp;nbsp; &amp;nbsp;- Add handleError() method to callbacks (breaks backwards source
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;compatibility)
&lt;br&gt;&lt;br&gt;Matt
&lt;br&gt;-- 
&lt;br&gt;www.matthew.ath.cx
&lt;br&gt;D-Bus Java
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664212&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (852 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26664212/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-dbus-java-release-tp26664212p26664212.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26614667</id>
	<title>RE: Java D-Bus API: Handling errors with callWithCallback()</title>
	<published>2009-12-02T11:18:26Z</published>
	<updated>2009-12-02T11:18:26Z</updated>
	<author>
		<name>Schmottlach, Glenn</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Currently, no, no and no, having looked at the code (-:
&lt;br&gt;&lt;br&gt;&amp;gt; Sensible options would seem to be:
&lt;br&gt;&lt;br&gt;&amp;gt; 1. add public void handleError(DBusException e); as a method on
&lt;br&gt;&amp;gt; CallbackHandler, thus requiring everyone to implement it in their
&lt;br&gt;&amp;gt; handlers
&lt;br&gt;&lt;br&gt;&amp;gt; ... actually, I'm not sure what else would be a sensible suggestion. I
&lt;br&gt;&amp;gt; should certainly fix it up so that it discards callbacks when errors
&lt;br&gt;&amp;gt; occur.
&lt;br&gt;&lt;br&gt;I would certainly we interested in such changes. It might help the Java binding compare more favorably with the Python binding which supports these features (and more) but is generally limited to the Linux world due to its heavy dependency on GLib, D-Bus library, etc... It (the Python binding) is just too difficult to build for Windows.
&lt;br&gt;&lt;br&gt;I'm currently *trying* to use your library to develop test applications that run on a Windows host and talk via TCP/IP to an embedded target running D-Bus with anonymous authentication. It does work but for now it appears I'll have to settle for synchronous communication between the host (Windows PC) and the embedded target if I want to be able to receive errors. An asynchronous communication pattern would be preferred. It seems like the Java binding is 95% there . . .
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26614667&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Java-D-Bus-API%3A-Handling-errors-with-callWithCallback%28%29-tp26575476p26614667.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26603689</id>
	<title>RE: dbus daemon auto start on system reboot</title>
	<published>2009-12-01T21:07:08Z</published>
	<updated>2009-12-01T21:07:08Z</updated>
	<author>
		<name>Nirav Rabara</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;/etc/init.d/dbus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;./dbus start&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;./dbus stop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;This Dbus script will run on system start
up, you can modify the path in this file as per your installation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Nirav &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26603689&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus-bounces@...&lt;/a&gt;
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26603689&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus-bounces@...&lt;/a&gt;] &lt;b&gt;&lt;span style='font-weight:bold'&gt;On
Behalf Of &lt;/span&gt;&lt;/b&gt;luying pan&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Wednesday, December 02, 2009
2:42 AM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26603689&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; dbus daemon auto start on
system reboot&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;Does anyone know which
configuration file controls which dbus-daemon to start automatically on system
restart? I have two dbus versions installed. The one installed under /usr/bin
can be auto-started on system startup, but the one installed under /usr/local/bin
can not be. &lt;br&gt;
&lt;br&gt;
I'm running fedora 11. Not too familiar with system startup scripts. Help is
appreciated.&lt;br&gt;
&lt;br&gt;
Luying&lt;br&gt;
&lt;br&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left width=100 style='width:75.0pt'&gt;
 &lt;tr&gt;
  &lt;td style='padding:0in 0in 0in 0in'&gt;
  &lt;p class=MsoNormal style='mso-element:frame'&gt;&lt;strong&gt;&lt;b&gt;&lt;font size=2 color=black face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial;
  color:black'&gt;Email Scanned for Virus &amp;amp; Dangerous Content by :&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/strong&gt;&lt;font size=2 color=&quot;#ffcc00&quot; face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
  Arial;color:#FFCC00'&gt; &lt;strong&gt;&lt;b&gt;&lt;font face=Arial&gt;&lt;span style='font-family:
  Arial'&gt;www.CleanMailGateway.com&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26603689&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbus-daemon-auto-start-on-system-reboot-tp26599208p26603689.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26601245</id>
	<title>Re: Java D-Bus API: Handling errors with callWithCallback()</title>
	<published>2009-12-01T15:51:37Z</published>
	<updated>2009-12-01T15:51:37Z</updated>
	<author>
		<name>Matthew Johnson-3</name>
	</author>
	<content type="html">On Tue Dec 01 12:35, Schmottlach, Glenn wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am (attempting) to write a Java D-Bus client that uses
&lt;br&gt;&amp;gt; AbstractConnection.callWithCallback() to asynchronously issue requests
&lt;br&gt;&amp;gt; to a D-Bus service. This reason I am using this method versus
&lt;br&gt;&amp;gt; AbstractConnection.callMethodAsync() is that I want to be notified
&lt;br&gt;&amp;gt; (via the callback) when the reply is returned rather than wait (or
&lt;br&gt;&amp;gt; poll) for the response. I have successfully used this method to
&lt;br&gt;&amp;gt; make requests to services and received a response via the callback
&lt;br&gt;&amp;gt; (e.g. it works as advertised). What I want to understand is how to
&lt;br&gt;&amp;gt; handle D-Bus error messages returned instead of a response to a
&lt;br&gt;&amp;gt; request. If I was issuing a blocking call through the remote object's
&lt;br&gt;&amp;gt; interface I could put a try/catch block around the request and &amp;quot;catch&amp;quot;
&lt;br&gt;&amp;gt; the error message. With callWithCallback() method there does not
&lt;br&gt;&amp;gt; appear to be a mechanism to report back any errors. Likewise, there
&lt;br&gt;&amp;gt; does not appear to be a mechanism to either cancel the request or
&lt;br&gt;&amp;gt; specify a timeout on the request. So, to summarize, these are my
&lt;br&gt;&amp;gt; questions:
&lt;/div&gt;&lt;/div&gt;Sorry, yes, I should do this. You've asked a much harder question though
&lt;br&gt;(-;
&lt;br&gt;&lt;br&gt;Firstly, you're probably the first person to actually use this API, I
&lt;br&gt;added it since it seemed like it might be useful.
&lt;br&gt;&lt;br&gt;&amp;gt; 1) How do I detect errors using callWithCallback()?
&lt;br&gt;&amp;gt; 2) Can I specify a timeout to wait for a response with callWithCallback()?
&lt;br&gt;&amp;gt; 3) Can I cancel a request issued with callWithCallback()?
&lt;br&gt;&lt;br&gt;Currently, no, no and no, having looked at the code (-:
&lt;br&gt;&lt;br&gt;Sensible options would seem to be:
&lt;br&gt;&lt;br&gt;1. add public void handleError(DBusException e); as a method on
&lt;br&gt;CallbackHandler, thus requiring everyone to implement it in their
&lt;br&gt;handlers
&lt;br&gt;&lt;br&gt;... actually, I'm not sure what else would be a sensible suggestion. I
&lt;br&gt;should certainly fix it up so that it discards callbacks when errors
&lt;br&gt;occur.
&lt;br&gt;&lt;br&gt;Matt
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;www.matthew.ath.cx
&lt;br&gt;D-Bus Java
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601245&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (852 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26601245/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Java-D-Bus-API%3A-Handling-errors-with-callWithCallback%28%29-tp26575476p26601245.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26599208</id>
	<title>dbus daemon auto start on system reboot</title>
	<published>2009-12-01T13:12:20Z</published>
	<updated>2009-12-01T13:12:20Z</updated>
	<author>
		<name>lxp149</name>
	</author>
	<content type="html">Does anyone know which configuration file controls which dbus-daemon to start automatically on system restart? I have two dbus versions installed. The one installed under /usr/bin can be auto-started on system startup, but the one installed under /usr/local/bin can not be. &lt;br&gt;
&lt;br&gt;I&amp;#39;m running fedora 11. Not too familiar with system startup scripts. Help is appreciated.&lt;br&gt;&lt;br&gt;Luying&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599208&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbus-daemon-auto-start-on-system-reboot-tp26599208p26599208.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598512</id>
	<title>Re: DBus Java method call?</title>
	<published>2009-12-01T12:21:08Z</published>
	<updated>2009-12-01T12:21:08Z</updated>
	<author>
		<name>Arigead</name>
	</author>
	<content type="html">Schmottlach, Glenn wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yes, AbstractConnection is an abstract but it's not an Interface (e.g. it provides a partial implementation). If you have a DBusConnection instance available you can call 'callMethodAsync' on that (since it inherits from AbstractConnection).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus-bounces@...&lt;/a&gt;] On Behalf Of Arigead
&lt;br&gt;&amp;gt; Sent: Tuesday, December 01, 2009 2:24 PM
&lt;br&gt;&amp;gt; To: Schmottlach, Glenn
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: DBus Java method call?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Schmottlach, Glenn wrote:
&lt;br&gt;&amp;gt;&amp;gt; You can find it (callMethodAsync) in the AbstractConnection class.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus-bounces@...&lt;/a&gt;] On Behalf Of Arigead
&lt;br&gt;&amp;gt;&amp;gt; Sent: Tuesday, December 01, 2009 1:14 PM
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: DBus Java method call?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello all,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; I've been looking whatever info I can find on Java DBus such as the
&lt;br&gt;&amp;gt;&amp;gt; API [1] and the High Level Documentation mentioned in the DBus Java Page
&lt;br&gt;&amp;gt;&amp;gt; [2].
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Basically that High Level Documentation gives an example of an
&lt;br&gt;&amp;gt;&amp;gt; asynchronous call as:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; DBusAsyncReply&amp;lt;Boolean&amp;gt; stuffreply =
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;conn.callMethodAsync(remoteObject, &amp;quot;methodname&amp;quot;, arg1, arg2);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; But I can't find that &amp;quot;callMethodAsync&amp;quot; method in the API Documentation
&lt;br&gt;&amp;gt;&amp;gt; [1]. I simply want to call a Dbus method defined by RhythmBox and ignore
&lt;br&gt;&amp;gt;&amp;gt; any response. Actually I don't think it has any response.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Could anybody suggest the API methods for Java DBus which achieve this?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks a million for any help
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [1] &lt;a href=&quot;http://dbus.freedesktop.org/doc/dbus-java/api/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbus.freedesktop.org/doc/dbus-java/api/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [2] &lt;a href=&quot;http://dbus.freedesktop.org/doc/dbus-java/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbus.freedesktop.org/doc/dbus-java/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; dbus mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for the mighty quick response and sorry for being stupid with
&lt;br&gt;&amp;gt; this DBus Java, but that AbstractConnection is Abstract. I can't see
&lt;br&gt;&amp;gt; where I get an AbstractConnection from.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I ever get this to work I hope there'll be time to write up a basic
&lt;br&gt;&amp;gt; document so that other people can do some simple Java DBus. Maybe there
&lt;br&gt;&amp;gt; is a clear document that shows the steps involved in using this API but
&lt;br&gt;&amp;gt; I've not found it as yet. Maybe a Tutorial or something of the like.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for helping anyhow, still a struggle ;-)
&lt;br&gt;&amp;gt; _______________________________________________
&lt;/div&gt;&lt;br&gt;&lt;br&gt;My Homer moment of the day. Thanks for that ;-)
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dbus mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598512&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dbus@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.freedesktop.org/mailman/listinfo/dbus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freedesktop.org/mailman/listinfo/dbus&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DBus-Java-method-call--tp26596496p26598512.html" />
</entry>

</feed>
