* scm_system and SCM_DEFER_INTS
@ 2003-08-13 21:00 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-08-13 21:00 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
Is there a particular reason for SCM_DEFER_INTS in scm_system?
I might have thought system() would be thread-safe if the C library is
doing its job.
* simpos.c (scm_system): No need for SCM_DEFER_INTS.
[-- Attachment #2: simpos.c.system-defer.diff --]
[-- Type: text/plain, Size: 401 bytes --]
--- simpos.c.~1.49.~ 2003-04-07 08:05:27.000000000 +1000
+++ simpos.c 2003-08-12 19:56:33.000000000 +1000
@@ -63,12 +63,10 @@
return SCM_BOOL(rv);
}
SCM_VALIDATE_STRING (1, cmd);
- SCM_DEFER_INTS;
errno = 0;
rv = system (SCM_STRING_CHARS (cmd));
if (rv == -1 || (rv == 127 && errno != 0))
SCM_SYSERROR;
- SCM_ALLOW_INTS;
return SCM_MAKINUM (rv);
}
#undef FUNC_NAME
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-13 21:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-13 21:00 scm_system and SCM_DEFER_INTS Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).