This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/4402] gettimeofday() and time() hang and consume all cpu when called in sig_child handler


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]