X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=vss.c;h=55eaf2eb0525d402dad6d3b47afb3e8b0241dad3;hp=fbc35e1a71c8983a5045ff8e0b7bc300f1dfb0ab;hb=ac4e01ba1a2f302bf31dd511a7aff8da78660b15;hpb=17c140cc24838c2b7049e2b4c17621f4284d53dc diff --git a/vss.c b/vss.c index fbc35e1a..55eaf2eb 100644 --- a/vss.c +++ b/vss.c @@ -1188,3 +1188,20 @@ void vss_init(int afs_socket, struct sched *s) .context = vsst, }, s); } + +/** + * Turn off the virtual streaming system. + * + * This is only executed on exit. It calls the ->shutdowwn method of all senders. + */ +void vss_shutdown(void) +{ + int i; + + FOR_EACH_SENDER(i) { + if (!senders[i]->shutdown) + continue; + PARA_NOTICE_LOG("shutting down %s sender\n", senders[i]->name); + senders[i]->shutdown(); + } +}