]> git.tuebingen.mpg.de Git - paraslash.git/commit
vss.c: Don't try to mmap empty files
authorAndre Noll <maan@systemlinux.org>
Thu, 22 Mar 2007 15:15:42 +0000 (16:15 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 22 Mar 2007 15:15:42 +0000 (16:15 +0100)
commite7788710ef8d47751f7f23ee1d9697d44d2968df
treed44ac3f9d2862d2e13ae7d50b870d1bf91d183b9
parentde4172dab20c58719921b5fdd2b9611a796bda6d
vss.c: Don't try to mmap empty files

as this causes mmap() to return MAP_FAILED, i.e. para_mmap() calls
exit() so para_server dies, which clearly is inapproriate.  Instead,
skip the audio file and try the next one if size == 0.
vss.c