mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 14:21:10 +02:00
(scm_mktime): Use scm_frame_critical_section instead of
SCM_CRITICAL_SECTION_START/END since the code inside the critical section might exit non-locally.
This commit is contained in:
parent
914da0e2fc
commit
9291479faa
1 changed files with 2 additions and 2 deletions
|
@ -532,7 +532,8 @@ SCM_DEFINE (scm_mktime, "mktime", 1, 1, 0,
|
||||||
scm_frame_free ((char *)lt.tm_zone);
|
scm_frame_free ((char *)lt.tm_zone);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SCM_CRITICAL_SECTION_START;
|
scm_frame_critical_section (SCM_BOOL_F);
|
||||||
|
|
||||||
oldenv = setzone (zone, SCM_ARG2, FUNC_NAME);
|
oldenv = setzone (zone, SCM_ARG2, FUNC_NAME);
|
||||||
#ifdef LOCALTIME_CACHE
|
#ifdef LOCALTIME_CACHE
|
||||||
tzset ();
|
tzset ();
|
||||||
|
@ -585,7 +586,6 @@ SCM_DEFINE (scm_mktime, "mktime", 1, 1, 0,
|
||||||
|
|
||||||
result = scm_cons (scm_from_long (itime),
|
result = scm_cons (scm_from_long (itime),
|
||||||
filltime (<, zoff, zname));
|
filltime (<, zoff, zname));
|
||||||
SCM_CRITICAL_SECTION_END;
|
|
||||||
if (zname)
|
if (zname)
|
||||||
free (zname);
|
free (zname);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue