int fromfd;
int cookie;
- while (atomic_get(&tvheadend_running)) {
+ while (tvheadend_is_running()) {
/* Read events */
fromfd = 0;
fsmonitor_link_t *fml;
fsmonitor_t *fsm;
- while (atomic_get(&tvheadend_running)) {
+ while (tvheadend_is_running()) {
fd = atomic_get(&fsmonitor_fd);
if (fd < 0)
poll = tvhpoll_create(evsize + 1);
tm = mclk();
waitms = 250;
- while (tvheadend_running && !quit) {
+ while (tvheadend_is_running() && !quit) {
evp = ev;
evp->fd = linuxdvb_ca_pipe.rd;
evp->events = TVHPOLL_IN;
/*
* Globals
*/
-int tvheadend_running;
+int tvheadend_running; /* do not use directly: tvheadend_is_running() */
int tvheadend_webui_port;
int tvheadend_webui_debug;
int tvheadend_htsp_port;