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 /vdr.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 'vdr.c')
-rw-r--r-- | vdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |