{"issue":{"milestone":null,"user":{"login":"Htbaa","id":70521,"url":"https://api.github.com/users/Htbaa","avatar_url":"https://secure.gravatar.com/avatar/bf8146229d93d41b3deb2758a48ce22c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bf8146229d93d41b3deb2758a48ce22c"},"title":"--Reload doesn't work with --daemonize","created_at":"2011-12-16T14:50:42Z","labels":[],"updated_at":"2011-12-16T16:48:58Z","state":"closed","id":2580362,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/miyagawa/Starman/issues/37","closed_at":"2011-12-16T16:48:58Z","body":"When running Starman with `--Reload` and `--daemonize` it isn't able to restart when a monitored file changes. It works fine when   it isn't daemonized.\r\n\r\nOutput from error log (with `--error_log` flag)\r\n\r\n````\r\nProcess Backgrounded\r\n2011/12/16-15:43:41 Starman::Server (type Net::Server::PreFork) starting! pid(18558)\r\nUsing default listen value of 128\r\nBinding to TCP port 5000 on host *\r\nSetting gid to \"33 33 33\"\r\nProcess Backgrounded\r\n2011/12/16-15:43:49 Starman::Server (type Net::Server::PreFork) starting! pid(18573)\r\nUsing default listen value of 128\r\nBinding to TCP port 5000 on host *\r\n2011/12/16-15:43:49 Can't connect to TCP port 5000 on * [Address already in use]\r\n  at line 88 in file /usr/local/perls/perl-5.12.2/lib/site_perl/5.12.2/Net/Server/Proto/TCP.pm\r\n2011/12/16-15:43:49 Server closing!\r\n````","number":37,"url":"https://api.github.com/repos/miyagawa/Starman/issues/37","comments":1,"assignee":null},"comment":{"user":{"login":"miyagawa","id":3499,"url":"https://api.github.com/users/miyagawa","avatar_url":"https://secure.gravatar.com/avatar/49e1240c84b221f3dcca57d005a2f569?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"49e1240c84b221f3dcca57d005a2f569"},"created_at":"2011-12-16T16:48:57Z","updated_at":"2011-12-16T16:48:57Z","id":3179521,"body":"Short answer is you can't. i wouldn't mind a patch detecting it or documenting the behavior.","url":"https://api.github.com/repos/miyagawa/Starman/issues/comments/3179521"},"action":"created"}