mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-11 23:51:03 +02:00
add a 'safe_system' function which avoids leaking FDs
This commit is contained in:
11
src/system/safe_system.h
Normal file
11
src/system/safe_system.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef _SAFE_SYSTEM_H_
|
||||
#define _SAFE_SYSTEM_H_
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
extern int safe_system(const char *);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
Reference in New Issue
Block a user