mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
pluginloader: handle fsync interrupted by signal (EINTR)
According to [1] EINTR is a possible errno for fsync(), so handle it as all other EINTR (do/while(errno == EINTR)). Signed-off-by: Peter Seiderer <ps.report@gmx.net>
This commit is contained in:
parent
96aa27910a
commit
4a827e11b4
1 changed files with 4 additions and 1 deletions
|
@ -171,8 +171,11 @@ plugin_loader_free (GstPluginLoader * loader)
|
|||
{
|
||||
GList *cur;
|
||||
gboolean got_plugin_details;
|
||||
gint fsync_ret;
|
||||
|
||||
fsync (loader->fd_w.fd);
|
||||
do {
|
||||
fsync_ret = fsync (loader->fd_w.fd);
|
||||
} while (fsync_ret < 0 && errno == EINTR);
|
||||
|
||||
if (loader->child_running) {
|
||||
put_packet (loader, PACKET_EXIT, 0, NULL, 0);
|
||||
|
|
Loading…
Reference in a new issue