4 * (c) 1998-2004 Alexey Vyskubov <alexey@mawhrin.net>
7 #include <unistd.h> /* fork() */
8 #include <sys/types.h> /* pid_t */
9 #include <stdlib.h> /* system */
11 #include <stdio.h> /* puts() */
25 if (pid
== (pid_t
) (-1)) {
29 puts("Not enough memory!");
33 puts("To many processes!");
37 puts("Unknown error, please report!");
41 if (pid
== (pid_t
) 0) {
45 if (!strcmp(read_param("Sound"), "Yes")) {
46 exit(system(read_param("Command")));