summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-30 12:35:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-30 12:35:09 +0200
commit726225e083aeab7d8ecc1471cabc0786517a4450 (patch)
tree86541f1fff8f46188bc81aaa1b51a11f33e8cfea /vdr.c
parent3b67f70b9db9e12e5e4e87ded3eb8db714fe9e3b (diff)
downloadvdr-726225e083aeab7d8ecc1471cabc0786517a4450.tar.gz
vdr-726225e083aeab7d8ecc1471cabc0786517a4450.tar.bz2
Providing channel number and file name to the shutdown program
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index d8fd1c6a..804d3637 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.80 2001/09/30 11:42:58 kls Exp $
+ * $Id: vdr.c 1.81 2001/09/30 12:13:38 kls Exp $
*/
#define _GNU_SOURCE
@@ -502,8 +502,10 @@ int main(int argc, char *argv[])
if (WatchdogTimeout > 0)
signal(SIGALRM, SIG_IGN);
if (Interface->Confirm(tr("Press any key to cancel shutdown"), LastActivity == 1 ? 5 : SHUTDOWNWAIT, true)) {
+ int Channel = timer ? timer->channel : 0;
+ const char *File = timer ? timer->file : "";
char *cmd;
- asprintf(&cmd, "%s %ld %ld", Shutdown, Next, Delta);
+ asprintf(&cmd, "%s %ld %ld %d '%s'", Shutdown, Next, Delta, Channel, File);
isyslog(LOG_INFO, "executing '%s'", cmd);
system(cmd);
delete cmd;