aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-13 17:08:31 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-13 17:08:31 +0000
commit5a50fa7147be049212274534ccfbf7ed14708070 (patch)
tree4f4f34fb6479102d7bf0d5ae8247a7bfac806aa8 /src/song.c
parentacf0e147c25d93d9434bb279ae422cb4e62c1f7e (diff)
downloadmpd-5a50fa7147be049212274534ccfbf7ed14708070.tar.gz
mpd-5a50fa7147be049212274534ccfbf7ed14708070.tar.xz
mpd-5a50fa7147be049212274534ccfbf7ed14708070.zip
block signals when writing db to ensure db isn't corrupted
git-svn-id: https://svn.musicpd.org/mpd/trunk@730 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/song.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/song.c b/src/song.c
index d9b28284c..1c3d53ad2 100644
--- a/src/song.c
+++ b/src/song.c
@@ -132,6 +132,7 @@ void freeSongList(SongList * list) {
freeList(list);
}
+/* DON'T BLOCK SIGNALS IN THIS FUNCTION, called by writeDirectoryDB() */
int printSongInfo(FILE * fp, Song * song) {
myfprintf(fp,"%s%s\n",SONG_FILE,song->utf8file);
@@ -151,6 +152,7 @@ int printSongInfoFromList(FILE * fp, SongList * list) {
return 0;
}
+/* DON'T BLOCK SIGNALS IN THIS FUNCTION, called by writeDirectoryDB() */
void writeSongInfoFromList(FILE * fp, SongList * list) {
ListNode * tempNode = list->firstNode;