mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: capture signals
This commit is contained in:
parent
ab20db8e6e
commit
5c42a31b9b
11
vlib/os/os.v
11
vlib/os/os.v
@ -53,9 +53,14 @@ import const (
|
||||
SEEK_SET
|
||||
SEEK_END
|
||||
SA_SIGINFO
|
||||
SIGSEGV
|
||||
S_IFMT
|
||||
S_IFDIR
|
||||
SIGABRT
|
||||
SIGFPE
|
||||
SIGILL
|
||||
SIGINT
|
||||
SIGSEGV
|
||||
SIGTERM
|
||||
)
|
||||
|
||||
struct C.stat {
|
||||
@ -587,6 +592,10 @@ $else {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn signal(signum int, handler voidptr) {
|
||||
C.signal(signum, handler)
|
||||
}
|
||||
|
||||
fn log(s string) {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user