summaryrefslogtreecommitdiff
path: root/sys/src/cmd/import.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-02-22 22:25:21 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-02-22 22:25:21 +0100
commit258fe87faf0a64947bb91c8ed93f8ea378a36f83 (patch)
treec0e683a2e9f080ac67f7fd6947483cde52deb4bd /sys/src/cmd/import.c
parenta9639c68947a9872cacd8a9629df097fe009503b (diff)
rc: terminate rc when exec fails, cleanup
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.
Diffstat (limited to 'sys/src/cmd/import.c')
0 files changed, 0 insertions, 0 deletions