lkml.org 
[lkml]   [2010]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] [Patch 0/21] Non disruptive application core dump infrastructure
> 1) A process can trigger a core synchronously, upon an event, say a signal 
> handler and continue from there. gcore would require a fork(), which is not
> safe to use from a signal handler.

Why is it not safe for a signal?

From the kernel side it should be. glibc may do some funky things
on fork, but you could always call the syscall directly.

-Andi
--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2010-12-15 12:55    [W:0.317 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site