reset signal handlers for child

SVN revision: 17718
This commit is contained in:
Carsten Haitzler 2005-10-21 03:00:08 +00:00
parent 7d7434fc10
commit f5b07d7543
1 changed files with 6 additions and 0 deletions

View File

@ -467,6 +467,12 @@ _e_fm_icon_thumb_generate(void)
pid = fork();
if (pid == 0)
{
/* reset signal handlers for the child */
signal(SIGSEGV, SIG_DFL);
signal(SIGILL, SIG_DFL);
signal(SIGFPE, SIG_DFL);
signal(SIGBUS, SIG_DFL);
sd = thumb_files->data;
if (!e_thumb_exists(sd->file->path))
e_thumb_create(sd->file->path, 48, 48); // thumbnail size