]> git.lizzy.rs Git - bspwm.git/commitdiff
Set proper socket option to allow fast restart
authorBastien Dejean <nihilhill@gmail.com>
Mon, 11 Nov 2013 20:56:38 +0000 (21:56 +0100)
committerBastien Dejean <nihilhill@gmail.com>
Mon, 11 Nov 2013 20:56:38 +0000 (21:56 +0100)
contrib/rule_scripts/ruld

index d291aeeda3a12b23c108af7a1a24a912acdf0daf..e4a8674c3ba8c6efbd6221a93c9605a8902fd05a 100755 (executable)
@@ -66,6 +66,7 @@ function test(env)
 end
 
 local fd = p.socket(p.AF_INET, p.SOCK_STREAM, 0)
+p.setsockopt(fd, p.SOL_SOCKET, p.SO_REUSEADDR, 1)
 p.bind(fd, {family=p.AF_INET, addr="127.0.0.1", port=port})
 p.listen(fd, p.SOMAXCONN)
 local running = true