Re: [PATCH] Improve LinuxThreads compatibility in rfork()

看板FB_current作者時間14年前 (2011/07/12 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/18 (看更多)
> I would instead use a new flag to specify a signal sent on the child > death. Like RFTSIGZMB. If flag is not set, SIGCHLD is used. If it is > set, the bit slice is used as signal number, 0 means do not send any > signal. > > Please note that the signal should be checked for validity, it must be > <= _SIG_MAXSIG). We used this: #define RFTHPNSHIFT 24 /* reserve bits 24-30 */ #define RFTHPNMASK 0x7F /* for compatibility with linuxthreads/clone() */ /* allow to specify "clone exit parent notification" signal */ #define RFTHPNSIGNUM(flags) (((flags) >> RFTHPNSHIFT) & RFTHPNMASK) Therefore signal #128 (_SIG_MAXSIG) cannot be selected. Should the bit slice be 7 or 8 bits ? Petr _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1E6pfXM7 (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 18 篇):
文章代碼(AID): #1E6pfXM7 (FB_current)