diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-21 18:15:37 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-21 18:15:37 +0000 |
commit | 0d11d91ab640777dc447f6ee0887ea6c47120af4 (patch) | |
tree | ed30f70630b20112ea7fd8915c5b85dcead4ae4b /include/asterisk/app.h | |
parent | f037110f96b77f3cc7eef70b1921f0d00f99a7f0 (diff) |
Create ast_safe_system which closes off file descriptors before spawning system() and so on.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2514 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/app.h')
-rwxr-xr-x | include/asterisk/app.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index ef7b05c27..d32575be9 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -45,6 +45,9 @@ extern int ast_app_has_voicemail(const char *mailbox); //! Determine number of new/old messages in a mailbox extern int ast_app_messagecount(const char *mailbox, int *newmsgs, int *oldmsgs); +//! Safely spawn an external program while closingn file descriptors +extern int ast_safe_system(const char *s); + #if defined(__cplusplus) || defined(c_plusplus) } #endif |