File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,11 @@ async function run() {
8888}
8989
9090process
91- . on ( 'SIGTERM' , function ( ) {
91+ . once ( 'SIGTERM' , function ( ) {
9292 console . log ( "\nTerminating" ) ;
9393 process . exit ( 0 ) ;
9494 } )
95- . on ( 'SIGINT' , function ( ) {
95+ . once ( 'SIGINT' , function ( ) {
9696 console . log ( "\nTerminating" ) ;
9797 process . exit ( 0 ) ;
9898 } ) ;
Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ async function runTest() {
149149}
150150
151151process
152- . on ( 'SIGTERM' , function ( ) {
152+ . once ( 'SIGTERM' , function ( ) {
153153 console . log ( "\nTerminating" ) ;
154154 process . exit ( 0 ) ;
155155 } )
156- . on ( 'SIGINT' , function ( ) {
156+ . once ( 'SIGINT' , function ( ) {
157157 console . log ( "\nTerminating" ) ;
158158 process . exit ( 0 ) ;
159159 } ) ;
Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ async function runTest() {
149149}
150150
151151process
152- . on ( 'SIGTERM' , function ( ) {
152+ . once ( 'SIGTERM' , function ( ) {
153153 console . log ( "\nTerminating" ) ;
154154 process . exit ( 0 ) ;
155155 } )
156- . on ( 'SIGINT' , function ( ) {
156+ . once ( 'SIGINT' , function ( ) {
157157 console . log ( "\nTerminating" ) ;
158158 process . exit ( 0 ) ;
159159 } ) ;
Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ async function run() {
8383}
8484
8585process
86- . on ( 'SIGTERM' , function ( ) {
86+ . once ( 'SIGTERM' , function ( ) {
8787 console . log ( "\nTerminating" ) ;
8888 process . exit ( 0 ) ;
8989 } )
90- . on ( 'SIGINT' , function ( ) {
90+ . once ( 'SIGINT' , function ( ) {
9191 console . log ( "\nTerminating" ) ;
9292 process . exit ( 0 ) ;
9393 } ) ;
You can’t perform that action at this time.
0 commit comments