問題タブ [control-c]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
442 参照

powershell - Powershell AcceptTcpClient() は Ctrl-C で中断できません

Powershell を使用して単純な TCP/IP サーバーを作成しています。Ctrl-C が AcceptTcpClient() 呼び出しを中断できないことに気付きました。ただし、呼び出し後に Ctrl-C は正常に機能します。私は周りを検索しましたが、これまでに同様の問題を報告した人はいません。

この問題は、次の単純なコードで繰り返すことができます。Powershell ISE ではなく、ネイティブの Powershell ターミナルで Windows 10 の最新のパッチを使用しています。

実行するとこうなります