Introduction
Introduction Statistics Contact Development Disclaimer Help
handledcgi: show error message if execl fails - geomyidae - A small C-based gop…
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit e48154791b3387b70536b62166fe8841df1b918f
parent 522c74dba4eb1ba5895fc39c8e9b1e13ef81e283
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 25 Jun 2017 20:56:08 +0200
handledcgi: show error message if execl fails
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M handlr.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/handlr.c b/handlr.c
@@ -222,7 +222,10 @@ handledcgi(int sock, char *file, char *port, char *base, c…
break;
}
- execl(file, p, sear, args, ohost, port, (char *)nil);
+ if (execl(file, p, sear, args, ohost, port, (char *)nil) == -1…
+ perror("execl");
+ _exit(1);
+ }
case -1:
break;
default:
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.