mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in rdalsaconfig(8). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21838,3 +21838,5 @@
|
|||||||
* Cleaned up compile warnings in ripcd(8).
|
* Cleaned up compile warnings in ripcd(8).
|
||||||
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Cleaned up compile warnings in the 'test_pam' harness.
|
* Cleaned up compile warnings in the 'test_pam' harness.
|
||||||
|
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Cleaned up compile warnings in rdalsaconfig(8).
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// A Qt-based application to display info about ALSA cards.
|
// A Qt-based application to display info about ALSA cards.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2009-2019 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2009-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
#include <qmessagebox.h>
|
#include <qmessagebox.h>
|
||||||
|
|
||||||
#include <rdapplication.h>
|
#include <rdapplication.h>
|
||||||
|
#include <rdconf.h>
|
||||||
|
|
||||||
#include "alsaitem.h"
|
#include "alsaitem.h"
|
||||||
#include "rdalsaconfig.h"
|
#include "rdalsaconfig.h"
|
||||||
@@ -44,7 +45,8 @@ void StopDaemons()
|
|||||||
{
|
{
|
||||||
if(alsa_manage_daemons) {
|
if(alsa_manage_daemons) {
|
||||||
if(system("systemctl --quiet is-active rivendell")==0) {
|
if(system("systemctl --quiet is-active rivendell")==0) {
|
||||||
system("systemctl --quiet stop rivendell");
|
RDCheckExitCode("StopDaemons() system",
|
||||||
|
system("systemctl --quiet stop rivendell"));
|
||||||
alsa_daemon_start_needed=true;
|
alsa_daemon_start_needed=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -54,7 +56,8 @@ void StopDaemons()
|
|||||||
void StartDaemons()
|
void StartDaemons()
|
||||||
{
|
{
|
||||||
if(alsa_daemon_start_needed) {
|
if(alsa_daemon_start_needed) {
|
||||||
system("systemctl --quiet start rivendell");
|
RDCheckExitCode("StartDaemons() system",
|
||||||
|
system("systemctl --quiet start rivendell"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user