Skip to content

Commit f378be7

Browse files
committed
use TRAP_SIGNAL instead of :SIGURG
On Windows (or some other platform), `SIGURG` is not supported so use `TRAP_SIGNAL` instead. fix #506
1 parent 86da1c5 commit f378be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/debug/server_dap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def process
213213
@is_attach = false
214214
when 'attach'
215215
send_response req
216-
Process.kill(:SIGURG, Process.pid)
216+
Process.kill(UI_ServerBase::TRAP_SIGNAL, Process.pid)
217217
@is_attach = true
218218
when 'setBreakpoints'
219219
path = args.dig('source', 'path')
@@ -313,7 +313,7 @@ def process
313313
exit
314314
when 'pause'
315315
send_response req
316-
Process.kill(:SIGURG, Process.pid)
316+
Process.kill(UI_ServerBase::TRAP_SIGNAL, Process.pid)
317317
when 'reverseContinue'
318318
send_response req,
319319
success: false, message: 'cancelled',

0 commit comments

Comments
 (0)