File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
- /* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. */
1
+ /* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. */
2
2
3
3
/******************************************************************************
4
4
*
@@ -88,7 +88,7 @@ oracledb.createPool (
88
88
// console.log("Connections in use: " + pool.connectionsInUse);
89
89
90
90
connection . execute (
91
- "SELECT employee_id, first_name, last_name " +
91
+ "SELECT employee_id, first_name, last_name " +
92
92
"FROM employees " +
93
93
"WHERE department_id = :id" ,
94
94
[ deptid ] , // bind variable value
@@ -115,11 +115,11 @@ oracledb.createPool (
115
115
{
116
116
if ( err ) {
117
117
handleError ( response , "normal release() callback" , err ) ;
118
- return ;
118
+ } else {
119
+ htmlFooter ( response ) ;
119
120
}
120
121
} ) ;
121
122
122
- htmlFooter ( response ) ;
123
123
} ) ;
124
124
} ) ;
125
125
} ) ;
@@ -193,3 +193,13 @@ function htmlFooter(response)
193
193
response . write ( "</body>\n</html>" ) ;
194
194
response . end ( ) ;
195
195
}
196
+
197
+ process
198
+ . on ( 'SIGTERM' , function ( ) {
199
+ console . log ( "\nTerminating" ) ;
200
+ process . exit ( 0 ) ;
201
+ } )
202
+ . on ( 'SIGINT' , function ( ) {
203
+ console . log ( "\nTerminating" ) ;
204
+ process . exit ( 0 ) ;
205
+ } ) ;
You can’t perform that action at this time.
0 commit comments