Hello! Are you sure that those functions are not thread-safe? I didn't know about that. Have you any related documentation? Man pages don't provide any information about it.
[EMAIL PROTECTED] wrote: > > From: [EMAIL PROTECTED] > Operating system: FreeBSD > Version: 3.2.dev > Database type: > Storage type: > Bug Type: Reproducible crash > Bug description: Unsafe function calls in signal handlers > > It is not safe to call printf() family functions from signal handlers, mainly >because of malloc() non-reenterant. I.e. if signal comes in the middle of malloc(), >another malloc() from fprintf() from signal handler function can cause crash or >other errors. > > Affected files are searchd.c, urld.c etc. i.e. all sighandler() places. > > Solution: just set some variable in sighandler() instead of unsafe function call and >check it in the loop afterwards. > > -- > Edit Bug report at: http://www.mnogosearch.org/bugs/index.php?id=14&edit=1 ___________________________________________ If you want to unsubscribe send "unsubscribe general" to [EMAIL PROTECTED]
