diff --git a/cpp/piscsi/piscsi_core.cpp b/cpp/piscsi/piscsi_core.cpp index a4e0f375..401199e7 100644 --- a/cpp/piscsi/piscsi_core.cpp +++ b/cpp/piscsi/piscsi_core.cpp @@ -5,7 +5,7 @@ // // Powered by XM6 TypeG Technology. // Copyright (C) 2016-2020 GIMONS -// Copyright (C) 2020-2022 Contributors to the PiSCSI project +// Copyright (C) 2020-2023 Contributors to the PiSCSI project // //--------------------------------------------------------------------------- @@ -146,11 +146,11 @@ PbDeviceType Piscsi::ParseDeviceType(const string& value) const return type; } -void Piscsi::TerminationHandler(int signum) +void Piscsi::TerminationHandler(int) { Cleanup(); - exit(signum); + // Process will terminate automatically } Piscsi::optargs_type Piscsi::ParseArguments(const vector& args, int& port) const diff --git a/cpp/scsictl/scsictl_core.cpp b/cpp/scsictl/scsictl_core.cpp index 06b04829..db2dea62 100644 --- a/cpp/scsictl/scsictl_core.cpp +++ b/cpp/scsictl/scsictl_core.cpp @@ -5,7 +5,7 @@ // // Powered by XM6 TypeG Technology. // Copyright (C) 2016-2020 GIMONS -// Copyright (C) 2020-2022 Contributors to the PiSCSI project +// Copyright (C) 2020-2023 Contributors to the PiSCSI project // //--------------------------------------------------------------------------- @@ -239,7 +239,7 @@ int ScsiCtl::run(const vector& args) const case 'X': command.set_operation(SHUT_DOWN); - SetParam(command, "mode", "piscsi"); + SetParam(command, "mode", "rascsi"); break; case 'z':