作者florenceL (佛罗伦斯)
看板Programming
标题[问题] exit没有执行?
时间Sat Oct 31 15:03:52 2015
各位版友好
想请问一下
我在server程式中fork出一个child执行execlp("/bin/exit","exit");
但是跑起来server没有被关掉
但是我自己在server的shell手打上exit却会关掉server端,
想请问是甚麽原因?
以及 execlp是哪里写错了?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.115.53.27
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Programming/M.1446275036.A.4D1.html
※ florenceL:转录至看板 Linux 10/31 16:25
※ florenceL:转录至看板 C_and_CPP 10/31 16:41
1F:→ balista: exit 是 外部程式 吗? 请先弄清楚 36.232.57.91 11/01 12:01