diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-11-28 16:01:40 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-12-05 08:55:26 -0300 |
commit | b597afa45a40ed2720659649e77dd25b45383fc0 (patch) | |
tree | 583c4a846d826d0e23b866408e512747c7470009 /emulator/main.c | |
parent | 5202ea57a8fda7b298bb920a05c349897377abc1 (diff) | |
download | bluez-b597afa45a40ed2720659649e77dd25b45383fc0.tar.gz |
shared/mainloop: Remove mainloop_set_signal
This removes mainloop_set_signal and replaces it usage with
mainloop_run_with_signal.
Diffstat (limited to 'emulator/main.c')
-rw-r--r-- | emulator/main.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/emulator/main.c b/emulator/main.c index 56246a3de..68c53488e 100644 --- a/emulator/main.c +++ b/emulator/main.c @@ -90,7 +90,6 @@ int main(int argc, char *argv[]) int amptest_count = 0; int vhci_count = 0; enum vhci_type vhci_type = VHCI_TYPE_BREDRLE; - sigset_t mask; int i; mainloop_init(); @@ -154,12 +153,6 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } - sigemptyset(&mask); - sigaddset(&mask, SIGINT); - sigaddset(&mask, SIGTERM); - - mainloop_set_signal(&mask, signal_callback, NULL, NULL); - printf("Bluetooth emulator ver %s\n", VERSION); for (i = 0; i < letest_count; i++) { @@ -227,5 +220,5 @@ int main(int argc, char *argv[]) fprintf(stderr, "Failed to open monitor server\n"); } - return mainloop_run(); + return mainloop_run_with_signal(signal_callback, NULL); } |