aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2021-01-14 10:01:25 -0500
committerRuss Cox <rsc@swtch.com>2021-01-14 10:01:25 -0500
commit6a80119eb509bd948d87ad1b84b0a82855a3c691 (patch)
tree2cb0cd260665eb38a015d14c876bcd2bc19f7e39
parentc3ae85a004c8714fc653629a983327d9a15b36da (diff)
downloadplan9port-6a80119eb509bd948d87ad1b84b0a82855a3c691.tar.gz
plan9port-6a80119eb509bd948d87ad1b84b0a82855a3c691.tar.bz2
plan9port-6a80119eb509bd948d87ad1b84b0a82855a3c691.zip
sam: remove backward ?:
The exit code here is ignored anyway.
-rw-r--r--src/cmd/sam/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/sam/shell.c b/src/cmd/sam/shell.c
index c6efdd57..92bd5277 100644
--- a/src/cmd/sam/shell.c
+++ b/src/cmd/sam/shell.c
@@ -90,7 +90,7 @@ plan9(File *f, int type, String *s, int nest)
free(c);
}
}
- exits(retcode? "error" : 0);
+ exits(0);
}
if(pid==-1){
fprint(2, "Can't fork?!\n");