projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix documentation of select command.
[paraslash.git]
/
fade.c
diff --git
a/fade.c
b/fade.c
index f269f0292fbf31be9f48673314beee6c14cb8c05..3e8479a0eb7783db1af51edef03693e0c369b8a8 100644
(file)
--- a/
fade.c
+++ b/
fade.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1998-200
7
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 1998-200
8
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
@@
-15,7
+15,6
@@
#include <stropts.h>
#include <ctype.h>
#include <stropts.h>
#include <ctype.h>
-#include <curses.h>
#include <stdlib.h> /* EXIT_SUCCESS */
#include <unistd.h>
#include <signal.h>
#include <stdlib.h> /* EXIT_SUCCESS */
#include <unistd.h>
#include <signal.h>
@@
-149,7
+148,7
@@
out:
close(mixer_fd);
}
close(mixer_fd);
}
-static
int client_cmd(const char *cmd,...
)
+static
void client_cmd(const char *cmd
)
{
int ret, fds[3] = {0, 0, 0};
pid_t pid;
{
int ret, fds[3] = {0, 0, 0};
pid_t pid;
@@
-158,7
+157,11
@@
static int client_cmd(const char *cmd,...)
PARA_INFO_LOG("%s\n", cmdline);
ret = para_exec_cmdline_pid(&pid, cmdline, fds);
free(cmdline);
PARA_INFO_LOG("%s\n", cmdline);
ret = para_exec_cmdline_pid(&pid, cmdline, fds);
free(cmdline);
- return ret;
+ if (ret < 0)
+ exit(EXIT_FAILURE);
+ do
+ ret = wait(NULL);
+ while (ret != -1 && errno != ECHILD);
}
static void change_afs_mode_and_play(char *afs_mode)
}
static void change_afs_mode_and_play(char *afs_mode)