summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rc/haventfork.c
AgeCommit message (Collapse)Author
2016-05-16rc: remove historical unix and win32 portscinap_lenrek
2016-02-22rc: terminate rc when exec fails, cleanupcinap_lenrek
The execexec() function should never return, as it irreversably changes the filedescriptor table for the new program. This means rc's internal filedesciptors for reading the script get implicitely closed and we cannot continue the rc interpreter when Execute() fails. So Execute() now sets the error status, and execexec() runs Xexit() in case Execute() returns.
2014-07-23rc: fix slow Xqdol(), avoid recursion in conclist(), estrdup(), avoid copyingcinap_lenrek
Xqdol() used to take quadratic time because of strcat(), the code isnt really needed as list2str() aready does the same thing in linear time without the strcat(). add estrdup() which uses emalloc() so allocation error are catched. move strdups() of name from callers into newvar(). avoid recursion of conclist(), and avoid copying of word strings by providing Newword() function which doesnt copy the word string.
2012-02-08rc: remove silly efree checkcinap_lenrek
2012-02-08rc: change plan9 envname limit to 128, cleanupcinap_lenrek
2011-04-04erik's patches to lift 8192 byte word size restrictionstanley lieber
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen