Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Sep 25, 2021
1 parent ab63026 commit a98736e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/backend/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@ export class GDBServer extends EventEmitter {
public exit(): void {
if (this.process) {
try {
console.log('GDBServer: requesting an exit with SIGNINT');
// Some of gdb-servers want to recieve an Control-C equivalent first, so try that for
// a bit more graceful exit
this.process.once('SIGINT', () => {
console.log('Server got SIGINT');
})
console.log('GDBServer: requesting an exit with SIGINT');
this.process.kill('SIGINT');
setTimeout(() => {
if (this.process != null) { // Still not dead?
Expand Down

0 comments on commit a98736e

Please sign in to comment.