reset signal handlers for child
authorCarsten Haitzler <raster@rasterman.com>
Fri, 21 Oct 2005 03:00:08 +0000 (03:00 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Fri, 21 Oct 2005 03:00:08 +0000 (03:00 +0000)
SVN revision: 17718

src/bin/e_fileman_icon.c

index fb93087..1300af1 100644 (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