Re: [PATCH BlueZ] core: Catch SIGPIPE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Luiz,

>> i don't think it works at all... bluetoothd is still exiting with SIGPIPE.
>> i'm a bit lost with fixing this, I tried few methods that were
>> suggested here and the only one that actually worked is to ignore the
>> signal.
>> 
>> please advise how do you want to proceed with this..
> 
> We might be better of switching to socketpair instead of pipe2 then,
> not only we can fix this problem using MSG_NOSIGNAL but also use
> sendmsg and setting auxiliary data which can be used to set things
> like the offset.

I agree, lets switch to socketpair. I have read up on handling SIGPIPE via signalfd and other means and it is just complicated.

Also we should include MSG_NOSIGNAL in all of our code and even switch the simple read/write to it.

Regards

Marcel




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux