This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4402] gettimeofday() and time() hang and consume all cpu when called in sig_child handler
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Apr 2007 09:14:46 -0000
- Subject: [Bug libc/4402] gettimeofday() and time() hang and consume all cpu when called in sig_child handler
- References: <20070421121337.4402.nico-linux-glibc@schottelius.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-04-27 10:14 -------
Pedantically, gettimeofday isn't mentioned among
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html#tag_02_04_03
and therefore you shouldn't call it from async signal handler.
time() and gettimeofday() are just syscalls (or vsyscall), so I very much doubt
it is hanging in these functions rather than elsewhere in your program.
Anyway, if you want us to look into this, please prepare a small self-contained
testcase.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=4402
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.