Why the Unix EINTR semantics (probably) exist

Given the problems that the POSIX EINTR stuff causes to various programs, one might wonder why they existat all. Why not make all system calls restart when signals aredelivered?

What I believe it comes down to is library safety.

Suppose that your signal handler wants to change the main flow ofthe program. There are two plausible mechanisms for this: you canimmediately transfer control back to the main flow of your program withsome changes (the traditional setjmp()/longjmp() approach), or you can


支持爭氣的理由


支持這個組別

私人理由是第一候選人是我的學長

文學的理由是她早年為我的寫作提供過大量寶貴意見和提點

真心的理由其實非常複雜

大概像我們這種沒有背景,沒有人事關係的人

在澳門要走自己的路都會比較崎嶇

沿途又總會看到

沒有台就搭一個吧!--爭氣故事之林玉鳳 (轉貼)


以下文章轉貼自 七步城思

(好友參選,小弟為其刊物寫下以下文章--一篇我保證用了很多真情實感寫的文章)

要了解林玉鳳表面看來一點也不難。你開電視,很可能就看到她議事論事;你翻報紙,很容易就讀到她的文章;Google一

南非乳品局的驚笑小電影

我嘅舊老闆將這系列廣告嘅其中一條放了上Facebook,佢話如果給這個廣告客戶看,九成嘅回應係:喂,我地嘅消費者又唔係雞/龜/海鷗,你有無搞錯?

這是肺腑之言但又在在實實,就是因為這麼多只用一邊腦思考嘅廣告客戶,呢個


Facebook

It has been two years since I joined Facebook. I still remembered my reluctance to accept my friend's invitation to join this social-networking site at the very beginning. Why? One reason – one of the big ones – is the anxiety of my space being invaded.

It's a thorny question. We're looking for ways to link with our distant friends. And yet, we might not want certain people (oh, say, our parents) to access our profile page. No matter how

An interesting issue with doing NFS over TCP (apparently)

We have a lot of NFS filesystems and, like most people today, we use NFSover TCP instead of over UDP. But this leads to a problem; sometimeswhen our systems reboot, they can't mount all of the NFS filesystems onthe first attempt. It generally takes several minutes to get to a statewhere all of them are mounted.

(We don't use the automounter, so we mount everything at boot; we have our own solution for the problemsthe automounter is trying to solve.


Programming blindness and security

Here is a thought and a theory that has recently struck me.

One reason that writing secure programs is hard is because programmershave a kind of blindness about our own code. Instead of seeing the codeas it really is, we tend to see the code as we imagine it in our heads,and as a result we see what we wrote it to do, not what it actuallydoes.

(This is not usually a literal blindness, although we can do that too,but a disconnect between what the the


廣州一年級學生說出“我的志願”

轉載自《 東南西北 》網站
https://www.zonaeuropa.com/200909a.brief.htm#003


“你长大了想做什么?”

“想做官。”

“做什么样的官呢?”

“做……贪官,因为贪官有很多东西。”


Environment variables make bad switches

Someday you may be faced with a deprecation situation where you need to add a compatibilityswitch to your program. When in this situation it may be tempting toresort to controlling things with an environment variable, instead ofgiving your program yet another command line option.

(The problem with using command line options is that they add clutter,complexity, or both to your documentation, including any usage stuffthat the program prints.)

Unfortunately this is not a good way to add such switches to yourprogram, especially compatibility switches


爭氣再爭氣-尉東君