mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
fix: Add SA_ONSTACK flag to the event 16
This commit is contained in:
parent
33b8ca84e8
commit
eb6a33f385
@ -94,6 +94,16 @@ proc mainProc() =
|
|||||||
echo("sigaltstack error!")
|
echo("sigaltstack error!")
|
||||||
quit()
|
quit()
|
||||||
|
|
||||||
|
var sa: ptr Sigaction = cast[ptr Sigaction](allocShared0(sizeof(Sigaction)))
|
||||||
|
var sa2: Sigaction
|
||||||
|
|
||||||
|
sa.sa_handler = SIG_DFL
|
||||||
|
sa.sa_flags = SA_ONSTACK
|
||||||
|
|
||||||
|
if sigaction(SIGURG, sa[], addr sa2) < 0:
|
||||||
|
echo("sigaction error!")
|
||||||
|
quit()
|
||||||
|
|
||||||
if main_constants.IS_MACOS and defined(production):
|
if main_constants.IS_MACOS and defined(production):
|
||||||
setCurrentDir(getAppDir())
|
setCurrentDir(getAppDir())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user