videolabs / libdsm

Defective SMb: A minimalist implementation of a client library for SMBv1 using Plain'Ol C

Home Page:http://videolabs.github.io/libdsm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIGPIPE

solidusex opened this issue · comments

Why does not disable the socket sigpipe, this will result in many platform process exit.

Sorry, but are you sure it's the role of the library to do this?

yes, because most applications have third-party libraries start threads , sigpipe make these threads crashed directly.

Also , why not turn off the old and useless functions? For example, where it will be used? just one line of code logic.

Sorry, but no. This has to be managed by the application. We cannot know what to do with this.

If some library consumer wants to manage those, how can it do it correctly?