X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod_command.c;h=bfd7c4aa5df170235f24961813bc4cc2e69790fa;hp=f9349a1d3068921e67012cab3a9680c601736a02;hb=037059c8a25ce134af1eaa6c3fa8ac96b9f7e0b6;hpb=8dab386f87d2998fd26126600ca7faf56d5a35d1 diff --git a/audiod_command.c b/audiod_command.c index f9349a1d..bfd7c4aa 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -301,21 +301,6 @@ int com_tasks(int fd, __a_unused int argc, __a_unused char **argv) return ret; } -int com_kill(int fd, int argc, char **argv) -{ - int i, ret = 1; - if (argc < 2) - return -E_AUDIOD_SYNTAX; - for (i = 1; i < argc; i++) { - ret = kill_task(argv[i]); - if (ret < 0) - break; - } - if (ret > 0) - close(fd); - return ret; -} - int com_stat(int fd, int argc, char **argv) { int i, ret, parser_friendly = 0; @@ -424,6 +409,7 @@ static int check_perms(uid_t uid) * Handle arriving connections on the local socket. * * \param accept_fd The fd to accept connections on. + * \param rfds If \a accept_fd is not set in \a rfds, do nothing. * * This is called in each iteration of the select loop. If there is an incoming * connection on \a accept_fd, this function reads the command sent by the peer,