ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fd leak when fork: forgot to set FD_CLOEXEC for the fd received from accept

YueHonghui opened this issue · comments

Forgot to set FD_CLOEXEC for the accepted fd, which will result in fd leakage when FORK FFMPEG.

TRANS_BY_GPT3

Can I submit a patch? git format-patch origin/develop will do, I haven't looked at this ioctl for a long time.

TRANS_BY_GPT3

Submitting a patch won't... Does submitting a PR work?

TRANS_BY_GPT3

PR is better than patch, haha.
😄

TRANS_BY_GPT3