diff options
author | Mark Spencer <markster@digium.com> | 2004-03-21 18:15:37 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-03-21 18:15:37 +0000 |
commit | 98b59da9adff0580df5325a931585e9eea71d588 (patch) | |
tree | ed30f70630b20112ea7fd8915c5b85dcead4ae4b /include | |
parent | a8bbe997d2bb453c8452692a4a7cab3c18d6687d (diff) |
Create ast_safe_system which closes off file descriptors before spawning system() and so on.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-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 |