dead-name.lisp 470 B

123456789101112131415
  1. (in-package :hurd)
  2. ;; This is run when we get a dead name notification
  3. (def-notify-interface :do-mach-notify-dead-name
  4. ((notify port) (name port))
  5. (let ((port-data (gethash notify *all-ports*)))
  6. (when (listp port-data)
  7. (let ((port-info (first port-data))
  8. (bucket (second port-data)))
  9. (remhash notify *all-ports*)
  10. (when bucket
  11. (bucket-remove-port bucket port-info nil))
  12. (port-deallocate name)))))