diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-20 10:39:27 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-20 10:39:27 +0200 |
commit | 60ee85bf172c43a4104203b6dfacb3353e606e48 (patch) | |
tree | aaf52d69f89f4473cd47b0bb88283acfe7254242 /recording.c | |
parent | 312764a7ab5dd1add651a1edf186ed5b517f68f2 (diff) | |
download | vdr-60ee85bf172c43a4104203b6dfacb3353e606e48.tar.gz vdr-60ee85bf172c43a4104203b6dfacb3353e606e48.tar.bz2 |
Closing all open file descriptors when calling external programs
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c index 2f4e1d26..fe56a6e6 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.41 2001/10/19 13:12:17 kls Exp $ + * $Id: recording.c 1.42 2001/10/20 10:28:28 kls Exp $ */ #include "recording.h" @@ -575,7 +575,7 @@ void cRecordingUserCommand::InvokeCommand(const char *State, const char *Recordi char *cmd; asprintf(&cmd, "%s %s '%s'", command, State, RecordingFileName); isyslog(LOG_INFO, "executing '%s'", cmd); - system(cmd); + SystemExec(cmd); delete cmd; } } |