mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
Add signal stubs (#4270)
os: init signal ignore stub and add other stubs Signed-off-by: leongross <leon.gross@9elements.com>
This commit is contained in:
@@ -72,3 +72,8 @@ func (p *Process) Kill() error {
|
|||||||
func (p *Process) Signal(sig Signal) error {
|
func (p *Process) Signal(sig Signal) error {
|
||||||
return ErrNotImplemented
|
return ErrNotImplemented
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Ignore(sig ...Signal) {
|
||||||
|
// leave all the signals unaltered
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
// 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) {}
|
||||||
Reference in New Issue
Block a user