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
This commit is contained in:
Mark Spencer
2004-03-21 18:15:37 +00:00
parent a8bbe997d2
commit 98b59da9ad
3 changed files with 63 additions and 10 deletions

View File

@@ -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