Re: [PATCH] bluetooth: never linger on process exit

2014-07-17 Thread Marcel Holtmann
Hi Vladimir, > If the current process is exiting, lingering on socket close will make > it unkillable, so we should avoid it. > > Reproducer: > > #include > #include > > #define BTPROTO_L2CAP 0 > #define BTPROTO_SCO 2 > #define BTPROTO_RFCOMM 3 > > int main() > { > int

Re: [PATCH] bluetooth: never linger on process exit

2014-07-17 Thread Marcel Holtmann
Hi Vladimir, please always include linux-blueto...@vger.kernel.org since otherwise it might be missed in the massive amount of emails that is LKML. > If the current process is exiting, lingering on socket close will make > it unkillable, so we should avoid it. > > Reproducer: > > #include >

[PATCH] bluetooth: never linger on process exit

2014-07-15 Thread Vladimir Davydov
If the current process is exiting, lingering on socket close will make it unkillable, so we should avoid it. Reproducer: #include #include #define BTPROTO_L2CAP 0 #define BTPROTO_SCO 2 #define BTPROTO_RFCOMM 3 int main() { int fd; struct linger ling;