Home › Forums › kdb+ › kdb version 4.0 changes to port? › Reply To: kdb version 4.0 changes to port?
-
What is the definition of handle_close?
Trying to close a handle which is already closed will throw that error.
Since you call exit 0 above the handle will be closed by the process exiting.
q)hclose 5 //Success first time
q)hclose 5 //Fails as 5 no longer exists, was closed above
'close. OS reports: Bad file descriptor
[0] hclose 5