mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
(scm_system): Remove SCM_DEFER_INTS, system() should be
thread safe, and could take a long time too.
This commit is contained in:
parent
c072c40c8b
commit
f94e3e6e4b
1 changed files with 0 additions and 2 deletions
|
@ -65,12 +65,10 @@ SCM_DEFINE (scm_system, "system", 0, 1, 0,
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue