[Asterisk-cvs] asterisk/include/asterisk app.h,1.5,1.6
markster at lists.digium.com
markster at lists.digium.com
Sun Mar 21 13:19:43 CST 2004
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv31574/include/asterisk
Modified Files:
app.h
Log Message:
Create ast_safe_system which closes off file descriptors before spawning system() and so on.
Index: app.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/app.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- app.h 26 Mar 2003 00:15:11 -0000 1.5
+++ app.h 21 Mar 2004 18:15:37 -0000 1.6
@@ -45,6 +45,9 @@
//! 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
More information about the svn-commits
mailing list