projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec6b95
)
Write IBUS_DAEMON_PID in address file.
author
Peng Huang
<shawn.p.huang@gmail.com>
Tue, 11 Aug 2009 23:33:31 +0000
(07:33 +0800)
committer
Peng Huang
<shawn.p.huang@gmail.com>
Tue, 11 Aug 2009 23:33:31 +0000
(07:33 +0800)
src/ibusshare.c
patch
|
blob
|
history
diff --git
a/src/ibusshare.c
b/src/ibusshare.c
index 04e4eb08dd5e9161da8f9485bc66753b2e7b44c5..ca505f6ac83f330ea8c48d6298f3d986e59cd392 100644
(file)
--- a/
src/ibusshare.c
+++ b/
src/ibusshare.c
@@
-19,6
+19,7
@@
*/
#include <glib-object.h>
+#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@
-226,6
+227,7
@@
ibus_write_address (const gchar *address)
fprintf (pf, "# This file is created by ibus-daemon, please do not modify it\n");
fprintf (pf, "IBUS_ADDRESS=%s\n", address);
+ fprintf (pf, "IBUS_DAEMON_PID=%d\n", getpid ());
fclose (pf);
}