diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-10 17:51:06 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-10 17:51:06 +0000 |
commit | f7a99e90470526bb28cc0c225f96490110094aed (patch) | |
tree | cbcc4f2df6d66e180fd65ee50488545786d094f1 /polyp/core.c | |
parent | 80ae72ce45dbc23ddc360749924110dcc752491e (diff) |
Merge Pierre's changes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@445 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/core.c')
-rw-r--r-- | polyp/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/core.c b/polyp/core.c index e2bebec2..60439243 100644 --- a/polyp/core.c +++ b/polyp/core.c @@ -89,7 +89,9 @@ struct pa_core* pa_core_new(struct pa_mainloop_api *m) { pa_random(&c->cookie, sizeof(c->cookie)); +#ifdef SIGPIPE pa_check_signal_is_blocked(SIGPIPE); +#endif return c; } @@ -144,7 +146,7 @@ void pa_core_check_quit(struct pa_core *c) { if (!c->quit_event && c->exit_idle_time >= 0 && pa_idxset_ncontents(c->clients) == 0) { struct timeval tv; - gettimeofday(&tv, NULL); + pa_gettimeofday(&tv); tv.tv_sec+= c->exit_idle_time; c->quit_event = c->mainloop->time_new(c->mainloop, &tv, quit_callback, c); } else if (c->quit_event && pa_idxset_ncontents(c->clients) > 0) { |