{"action":"created","issue":{"url":"https://api.github.com/repos/pinterface/burgled-batteries/issues/13","repository_url":"https://api.github.com/repos/pinterface/burgled-batteries","labels_url":"https://api.github.com/repos/pinterface/burgled-batteries/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/pinterface/burgled-batteries/issues/13/comments","events_url":"https://api.github.com/repos/pinterface/burgled-batteries/issues/13/events","html_url":"https://github.com/pinterface/burgled-batteries/issues/13","id":164639302,"number":13,"title":"Brokes sb-ext:with-timeout","user":{"login":"VitoVan","id":1756956,"avatar_url":"https://avatars.githubusercontent.com/u/1756956?v=3","gravatar_id":"","url":"https://api.github.com/users/VitoVan","html_url":"https://github.com/VitoVan","followers_url":"https://api.github.com/users/VitoVan/followers","following_url":"https://api.github.com/users/VitoVan/following{/other_user}","gists_url":"https://api.github.com/users/VitoVan/gists{/gist_id}","starred_url":"https://api.github.com/users/VitoVan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitoVan/subscriptions","organizations_url":"https://api.github.com/users/VitoVan/orgs","repos_url":"https://api.github.com/users/VitoVan/repos","events_url":"https://api.github.com/users/VitoVan/events{/privacy}","received_events_url":"https://api.github.com/users/VitoVan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-09T00:22:16Z","updated_at":"2016-07-09T09:39:45Z","closed_at":null,"body":"; SLIME 2.18\r\nCL-USER> (defun test-timeout ()\r\n  (handler-case (sb-ext:with-timeout 2 (sleep 10))\r\n    (condition () \"sb-ext:with-timeout works fine!\")\r\n    (:no-error (r) (format nil \"no timeout, result ~S\" r))))\r\n**TEST-TIMEOUT**\r\nCL-USER> (test-timeout)\r\n**\"sb-ext:with-timeout works fine!\"**\r\nCL-USER> (ql:quickload 'burgled-batteries)\r\nTo load \"burgled-batteries\":\r\n  Load 1 ASDF system:\r\n    burgled-batteries\r\n; Loading \"burgled-batteries\"\r\n...\r\n**(BURGLED-BATTERIES)**\r\nCL-USER> (test-timeout)\r\n**\"no timeout, result NIL\"**\r\n"},"comment":{"url":"https://api.github.com/repos/pinterface/burgled-batteries/issues/comments/231525858","html_url":"https://github.com/pinterface/burgled-batteries/issues/13#issuecomment-231525858","issue_url":"https://api.github.com/repos/pinterface/burgled-batteries/issues/13","id":231525858,"user":{"login":"VitoVan","id":1756956,"avatar_url":"https://avatars.githubusercontent.com/u/1756956?v=3","gravatar_id":"","url":"https://api.github.com/users/VitoVan","html_url":"https://github.com/VitoVan","followers_url":"https://api.github.com/users/VitoVan/followers","following_url":"https://api.github.com/users/VitoVan/following{/other_user}","gists_url":"https://api.github.com/users/VitoVan/gists{/gist_id}","starred_url":"https://api.github.com/users/VitoVan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitoVan/subscriptions","organizations_url":"https://api.github.com/users/VitoVan/orgs","repos_url":"https://api.github.com/users/VitoVan/repos","events_url":"https://api.github.com/users/VitoVan/events{/privacy}","received_events_url":"https://api.github.com/users/VitoVan/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T09:39:45Z","updated_at":"2016-07-09T09:39:45Z","body":"Thank you, pinterface.\r\n\r\nI think you're right, after burgled-batteries is loaded, the code below fails too:\r\n\r\n```lisp\r\n(schedule-timer (make-timer (lambda ()\r\n                              (write-line \"Hello, world\")\r\n                              (force-output)))\r\n                2)\r\n```\r\n\r\nThen I go checked the source of sbcl, finally found this:\r\n\r\nhttps://github.com/sbcl/sbcl/blob/ae8b379b14f598907933228efca5c33ad3d66912/src/runtime/wrap.c#L569\r\n\r\nIt seems they use `setitimer` to perform schedule actions, then I checked `man setitimer`, found some signal related stuff.\r\n\r\nBut when I go through source code of burgled-batteries, I didn't find any fragments which 'register/deregister signal handlers'.\r\n\r\nI am not familiar with C nor Common Lisp, is there any way to fix this?\r\n"}}
{"actor":{"display_login":"VitoVan"}}