ofdbus/dbus-glib/tsrc/testapps/dbus_glib_signal_server2/src/dbus_glib_signal_server2.c
equal
deleted
inserted
replaced
63 |
63 |
64 signal_second++; |
64 signal_second++; |
65 if(signal_second == 2) |
65 if(signal_second == 2) |
66 { |
66 { |
67 fd = open(fifopath, O_WRONLY); |
67 fd = open(fifopath, O_WRONLY); |
68 sleep(2); |
|
69 if(fd > 0) |
68 if(fd > 0) |
70 { |
69 { |
71 if(signal_first == 1) |
70 if(signal_first == 1) |
72 buf1 = "1"; |
71 buf1 = "1"; |
73 if(signal_first == 2) |
72 if(signal_first == 2) |
118 dbus_g_proxy_connect_signal (proxy, "HelloSignal", G_CALLBACK (hello_signal_handler), |
117 dbus_g_proxy_connect_signal (proxy, "HelloSignal", G_CALLBACK (hello_signal_handler), |
119 NULL, NULL); |
118 NULL, NULL); |
120 dbus_g_proxy_connect_signal (proxy, "HelloSignal", G_CALLBACK (hello_signal_handler1), |
119 dbus_g_proxy_connect_signal (proxy, "HelloSignal", G_CALLBACK (hello_signal_handler1), |
121 NULL, NULL); |
120 NULL, NULL); |
122 fd = open(fifopath, O_WRONLY); |
121 fd = open(fifopath, O_WRONLY); |
123 sleep(2); |
|
124 if (fd > 0) |
122 if (fd > 0) |
125 { |
123 { |
126 err = write(fd, buf1, strlen(buf1)); |
124 err = write(fd, buf1, strlen(buf1)); |
127 close(fd); |
125 close(fd); |
128 } |
126 } |