mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
tools: fix vwatch.v compilation
This commit is contained in:
parent
aff21c976b
commit
bb4f0ed4a9
1 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ const ccontext = Context{
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
mut context := &ccontext
|
mut context := unsafe { &Context(voidptr(&ccontext)) }
|
||||||
context.pid = os.getpid()
|
context.pid = os.getpid()
|
||||||
context.vexe = os.getenv('VEXE')
|
context.vexe = os.getenv('VEXE')
|
||||||
context.is_worker = os.args.contains('-vwatchworker')
|
context.is_worker = os.args.contains('-vwatchworker')
|
||||||
|
@ -282,7 +282,7 @@ fn (mut context Context) manager_main() {
|
||||||
fn (mut context Context) worker_main() {
|
fn (mut context Context) worker_main() {
|
||||||
context.rerun_channel = chan RerunCommand{cap: 10}
|
context.rerun_channel = chan RerunCommand{cap: 10}
|
||||||
os.signal(C.SIGINT, fn () {
|
os.signal(C.SIGINT, fn () {
|
||||||
mut context := &ccontext
|
mut context := unsafe { &Context(voidptr(&ccontext)) }
|
||||||
context.is_exiting = true
|
context.is_exiting = true
|
||||||
context.kill_pgroup()
|
context.kill_pgroup()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue