At 1237393978 time_t, Alex Cornejo wrote:
> We could certainly add this, although doing 3 checks with the current method
> (if bla do x, else if bla1 do x, else if bla2 do x) would be IMHO poor
> programming practice.

Reading man page, you don't have a choice. There's only bind() to create
such a socket.

> If we want to have 3 fallbacks, we could just support a list of fallback
> directories. The main problem I see here is how to test if a socket can be
> created in a directory without calling bind. If this could be done we could
> insert all this logic in socket_getaddr and revert the patch on
> awesome-client.c and luaa.c.

All fallback logic should be in common/socket.c. Currently it is
duplicated, and it's bad.

Cheers,
-- 
Julien Danjou
// ᐰ <[email protected]>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// When I get sad, I stop being sad and be awesome instead. True story.

Attachment: signature.asc
Description: Digital signature

Reply via email to