https://bugzilla.novell.com/show_bug.cgi?id=331002#c30
--- Comment #30 from Kay Sievers 2007-10-25 19:00:23 MST ---
Here is an strace of a self-forking D-Bus. It
- starts
- creates the socket
- listens to it
- sets the socket world readable
- forks the daemon
- writes the pid file
- exits
09:47:15 execve("/bin/dbus-daemon", ["dbus-daemon", "--system"], [/* 58 vars
*/]) = 0
09:47:15 stat64("/var/run/dbus/pid", 0xbfd677bc) = -1 ENOENT (No such file or
directory)
09:47:15 socket(PF_FILE, SOCK_STREAM, 0) = 3
09:47:15 stat64("/var/run/dbus/system_bus_socket", 0xbfd6760c) = -1 ENOENT (No
such file or directory)
09:47:15 bind(3, {sa_family=AF_FILE, path="/var/run/dbus/system_bus_socket"},
33) = 0
09:47:15 listen(3, 30) = 0
09:47:15 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
09:47:15 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
09:47:15 chmod("/var/run/dbus/system_bus_socket", 0777) = 0
09:47:15 fcntl64(3, F_GETFD) = 0
09:47:15 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
09:47:15 chdir("/") = 0
09:47:15 clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7dcc708)
= 5490
09:47:15 open("/var/run/dbus/pid", O_WRONLY|O_CREAT|O_EXCL, 0644) = 4
09:47:15 fcntl64(4, F_GETFL) = 0x1 (flags O_WRONLY)
09:47:15 fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
09:47:15 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f37000
09:47:15 _llseek(4, 0, [0], SEEK_CUR) = 0
09:47:15 write(4, "5490\n", 5) = 5
09:47:15 close(4) = 0
09:47:15 exit_group(0) = ?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.