Page MenuHomeFreeBSD

shichun_ma_dell.com (shichun_ma)
User

Projects

User does not belong to any projects.

User Details

User Since
Oct 16 2018, 6:25 AM (123 w, 1 d)

Recent Activity

Mon, Feb 22

shichun_ma_dell.com requested review of D28848: The socket SO_LINGER option don't work..
Mon, Feb 22, 6:14 AM

Thu, Feb 18

shichun_ma_dell.com added a comment to D28562: fix sys_write error, only need SIGPIPE for EPIPE and socket .

I make a driver that compatable with Linux. From the application, it will not see it running on FreeBSD or Linux.
On linux, it will encounter same error without this signal sending. If I change error code, it will behave differently from linux.
I think others will also encounter similar issue , why not make a genric change that benifit all?

Thu, Feb 18, 7:47 AM

Sat, Feb 13

shichun_ma_dell.com added a comment to D28032: add interface set 0/alter when start/stop play/record audio.

@hselasky , expecting to see your patch, and I stand by to do any test.

Sat, Feb 13, 8:28 AM
shichun_ma_dell.com added a comment to D28562: fix sys_write error, only need SIGPIPE for EPIPE and socket .

@kib, sorry just realize that nfslock_write is a function in FreeBSD 12.0.
I don't have exact backtrace for it, this is an issue I debugs days before. Here is what I did. I implemented /dev/hidraw.
When run same app on Linux system, it has below strace. While there is signal SIGPIPE after write error.
Then I checked the code, and got that tdsignal(td, SIGPIPE) will be called from dofilewrite.
Here is the piece info from the whole trace file.

Sat, Feb 13, 2:01 AM

Wed, Feb 10

shichun_ma_dell.com added a comment to D28562: fix sys_write error, only need SIGPIPE for EPIPE and socket .

@jhb, Here is one example:

  1. in function nfslock_write, it call nfslockdans, and it's possible that nfslockdans encounter EPIPE error.
  2. application's expectation is jut got write error with return error EPIPE, while freeBSD kernel send extra signal SIGPIPE, this will cause application killed by unexpected signal.
Wed, Feb 10, 11:12 PM
shichun_ma_dell.com updated subscribers of D28562: fix sys_write error, only need SIGPIPE for EPIPE and socket .

@jhb , could you review this?

Wed, Feb 10, 12:20 AM
shichun_ma_dell.com added a comment to D28032: add interface set 0/alter when start/stop play/record audio.

@hselasky , the set chan prepare operation need wait configure message callback API finished.
I don't have good method to do that, while usually xfer starts after set alt interface.
It's ok to submit this to mainstream, this change may impact others and can be improved.

Wed, Feb 10, 12:17 AM
shichun_ma_dell.com requested review of D28562: fix sys_write error, only need SIGPIPE for EPIPE and socket .
Wed, Feb 10, 12:10 AM

Jan 8 2021

shichun_ma_dell.com requested review of D28032: add interface set 0/alter when start/stop play/record audio.
Jan 8 2021, 3:19 AM

Nov 12 2020

shichun_ma_dell.com added a comment to D27174: Allow user to configure endpoints twice.

It's a good fix.

Nov 12 2020, 7:16 AM