Ivica Ico Bukvic wrote:
Speaking of tcpserver.c isn't the tcpserver_notify() function making an
unsafe outlet_float() call when it is being triggered by an external
event (disconnection) which can happen out-of-order and thus potentially
causing crashes?

Shouldn't this be wrapped also in a clock_delay()?


No, it's called from a poll routine that Pd calls at a safe time.
The disconnect happens asynchronously but Pd checks for activity on that socket with a select() call, which, if it detects a disconnect, results in tcpserver_notify() being called.

Martin


_______________________________________________
Pd-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to