add another kqueue example from sample code in Apple documentation