- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 current shell & subshell & separate invocations
1. "current shell"Commands enclosed in {} are executed in the current shell. There must be whitespace after the opening {, or else you get a syntax error. One more restriction: commands within the {}
2010-09-30 11:46:00 1095 2
转载 pthread_cond_broadcast() and pthread_cond_signal()
The pthread_cond_broadcast() and pthread_cond_signal() functions shall have no effect if there are no threads currently blocked on cond.If no thread is blocked on the condition, the subroutine succe
2010-09-14 17:56:00 1127
原创 为什么进程组的leader不允许调用setsid()?
--调用setsid()的进程将成为一个新的进程组的组长--如果允许一个进程组长调用setsid()的话,那这个人将成为两个组的组长..--再说,进程组长的定义是“其进程ID=进程组ID”,如果某个进程是两个组的组长,那么这两个组的进程组ID是相同的??
2010-09-13 09:53:00 1144
原创 为什么sigsuspend要与sigprocmask配合使用?
apue示例代码:sigemptyset(&new_mask);sigemptyset(&zero_mask); // 清空信号集zero_masksigaddset(&new_mask, SIGQUIT);sigprocmask(SIG_BLOCK, &new_mask, &old_mask); // 阻塞SIGQUITwhile( quitflag == 0
2010-09-13 09:40:00 2411
转载 同步锁--摘自《unix网络编程》第二卷
关于互斥:When a mutex is shared between processes, there is always a chance that the process can terminate (perhaps involuntarily) while holding the mutex lock. There is no way to have the system automati
2010-09-11 16:49:00 609
The Korn Shell: Unix and Linux Programming Manual, Third Edition
2012-04-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人