On Thu, Oct 6, 2016 at 3:15 AM dc0d <kaveh.shahbaz...@gmail.com> wrote:
> Nice! Seems working! > > I could not get Unix Domain Socket to work, since I expected an error on > Listen or Accept but there were no errors. > Works fine when I tested it using this approach: https://play.golang.org/p/A1C5BEIP2G func main() { _, err := net.ListenUnix("unix", &net.UnixAddr{"/tmp/unixdomain", "unix"}) if err != nil { panic("Already locked") } defer os.Remove("/tmp/unixdomain") } Justin > > On Wednesday, October 5, 2016 at 12:00:12 AM UTC+3:30, Ingo Oeser wrote: > > Are you looking for something like > https://godoc.org/github.com/nightlyone/lockfile ? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.