mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-28 10:52:22 +00:00
Fixed shutdown issues (#1067)
* Fixed wrong shutdown mode string (must be 'rascsi', not 'piscsi') * Fixed spurious segfaults in termination handler
This commit is contained in:
parent
78206ed670
commit
649655ba40
@ -5,7 +5,7 @@
|
|||||||
//
|
//
|
||||||
// Powered by XM6 TypeG Technology.
|
// Powered by XM6 TypeG Technology.
|
||||||
// Copyright (C) 2016-2020 GIMONS
|
// 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;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Piscsi::TerminationHandler(int signum)
|
void Piscsi::TerminationHandler(int)
|
||||||
{
|
{
|
||||||
Cleanup();
|
Cleanup();
|
||||||
|
|
||||||
exit(signum);
|
// Process will terminate automatically
|
||||||
}
|
}
|
||||||
|
|
||||||
Piscsi::optargs_type Piscsi::ParseArguments(const vector<char *>& args, int& port) const
|
Piscsi::optargs_type Piscsi::ParseArguments(const vector<char *>& args, int& port) const
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
//
|
//
|
||||||
// Powered by XM6 TypeG Technology.
|
// Powered by XM6 TypeG Technology.
|
||||||
// Copyright (C) 2016-2020 GIMONS
|
// 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<char *>& args) const
|
|||||||
|
|
||||||
case 'X':
|
case 'X':
|
||||||
command.set_operation(SHUT_DOWN);
|
command.set_operation(SHUT_DOWN);
|
||||||
SetParam(command, "mode", "piscsi");
|
SetParam(command, "mode", "rascsi");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'z':
|
case 'z':
|
||||||
|
Loading…
Reference in New Issue
Block a user