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