michael@632: Index: upnp/sample/linux/tv_ctrlpt_main.c michael@632: diff -Nau upnp/sample/linux/tv_ctrlpt_main.c.orig upnp/sample/linux/tv_ctrlpt_main.c michael@632: --- upnp/sample/linux/tv_ctrlpt_main.c.orig 2008-03-22 17:48:13.000000000 +0100 michael@632: +++ upnp/sample/linux/tv_ctrlpt_main.c 2009-01-12 16:05:10.847325711 +0100 michael@632: @@ -60,7 +60,11 @@ michael@632: /* Catch Ctrl-C and properly shutdown */ michael@632: sigemptyset(&sigs_to_catch); michael@632: sigaddset(&sigs_to_catch, SIGINT); michael@70: +#if (defined(sun) && defined(__svr4__)) michael@632: + sigwait(&sigs_to_catch); michael@70: +#else michael@632: sigwait(&sigs_to_catch, &sig); michael@70: +#endif michael@632: SampleUtil_Print("Shutting down on signal %d...\n", sig); michael@632: #endif michael@632: rc = TvCtrlPointStop(); michael@632: Index: upnp/sample/linux/tv_combo_main.c michael@632: diff -Nau upnp/sample/linux/tv_combo_main.c.orig upnp/sample/linux/tv_combo_main.c michael@632: --- upnp/sample/linux/tv_combo_main.c.orig 2009-01-12 16:12:00.406762331 +0100 michael@632: +++ upnp/sample/linux/tv_combo_main.c 2009-01-12 16:14:23.401611284 +0100 michael@632: @@ -61,7 +61,11 @@ michael@632: /* Catch Ctrl-C and properly shutdown */ michael@632: sigemptyset(&sigs_to_catch); michael@632: sigaddset(&sigs_to_catch, SIGINT); michael@70: +#if (defined(sun) && defined(__svr4__)) michael@632: + sigwait(&sigs_to_catch); michael@70: +#else michael@632: sigwait(&sigs_to_catch, &sig); michael@70: +#endif michael@632: SampleUtil_Print("Shutting down on signal %d...\n", sig); michael@632: #endif michael@632: TvDeviceStop(); michael@632: Index: upnp/sample/linux/tv_device_main.c michael@632: diff -Nau upnp/sample/linux/tv_device_main.c.orig upnp/sample/linux/tv_device_main.c michael@632: --- upnp/sample/linux/tv_device_main.c.orig 2008-03-22 18:04:30.000000000 +0100 michael@632: +++ upnp/sample/linux/tv_device_main.c 2009-01-12 16:19:03.504059810 +0100 michael@632: @@ -59,7 +59,11 @@ michael@632: /* Catch Ctrl-C and properly shutdown */ michael@632: sigemptyset(&sigs_to_catch); michael@632: sigaddset(&sigs_to_catch, SIGINT); michael@70: +#if (defined(sun) && defined(__svr4__)) michael@632: + sigwait(&sigs_to_catch); michael@70: +#else michael@632: sigwait(&sigs_to_catch, &sig); michael@70: +#endif michael@632: SampleUtil_Print("Shutting down on signal %d...\n", sig); michael@632: #endif michael@632: rc = TvDeviceStop();