New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localtime() calls tzset() and hangs cupsd on Solaris #242
Comments
CUPS.org User: mike Fixed in CVS... |
"str242.patch": Index: conf.cRCS file: /development/cvs/cups/scheduler/conf.c,v
/*
+#ifdef HAVE_TM_GMTOFF
/*
snprintf(s, sizeof(s), "[%02d/%s/%04d:%02d:%02d:%02d %+03ld%02ld]",
|
CUPS Web UI: Fix uninitialized variable during driver selection (#242)
Version: 1.1.19
CUPS.org User: mike
The same signal handler bug is also triggered by localtime() on Solaris. Apparently Sun, in their infinite wisdom, call tzset() for each call to localtime(), which in turn calls malloc() and free() and hoses things totally when called from a signal handler.
Need to revamp the code to use gmtime() and to save the local timezone offset from the ReadConfiguration() function. That will allow local time to be reported without using localtime()...
The text was updated successfully, but these errors were encountered: