summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-10-20 10:39:27 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-10-20 10:39:27 +0200
commit60ee85bf172c43a4104203b6dfacb3353e606e48 (patch)
treeaaf52d69f89f4473cd47b0bb88283acfe7254242 /vdr.c
parent312764a7ab5dd1add651a1edf186ed5b517f68f2 (diff)
downloadvdr-60ee85bf172c43a4104203b6dfacb3353e606e48.tar.gz
vdr-60ee85bf172c43a4104203b6dfacb3353e606e48.tar.bz2
Closing all open file descriptors when calling external programs
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index efba4666..6c75967e 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.84 2001/10/19 13:37:24 kls Exp $
+ * $Id: vdr.c 1.85 2001/10/20 10:26:54 kls Exp $
*/
#include <getopt.h>
@@ -509,7 +509,7 @@ int main(int argc, char *argv[])
char *cmd;
asprintf(&cmd, "%s %ld %ld %d '%s'", Shutdown, Next, Delta, Channel, File);
isyslog(LOG_INFO, "executing '%s'", cmd);
- system(cmd);
+ SystemExec(cmd);
delete cmd;
}
else if (WatchdogTimeout > 0) {