runtime: add support for os/signal

This adds support for enabling and listening to signals on Linux and
MacOS.
This commit is contained in:
Ayke van Laethem
2024-08-02 17:10:52 +02:00
committed by Ron Evans
parent 0f95b4102d
commit b8fe75a9dd
9 changed files with 374 additions and 19 deletions
-14
View File
@@ -1,14 +0,0 @@
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package signal
import (
"os"
)
// Just stubbing the functions for now since signal handling is not yet implemented in tinygo
func Reset(sig ...os.Signal) {}
func Ignore(sig ...os.Signal) {}
func Notify(c chan<- os.Signal, sig ...os.Signal) {}