mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00

wsi can have a full tree relationship with each other using linked lists. closing the parent ensures the children are closed first. Convert cgi to use this instead of his cgi-specific sub-wsi management. Signed-off-by: Andy Green <andy.green@linaro.org>
18 lines
237 B
Bash
Executable file
18 lines
237 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo "lwstest script stdout"
|
|
>&2 echo "lwstest script stderr"
|
|
|
|
echo "REQUEST_METHOD=$REQUEST_METHOD"
|
|
|
|
if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|
read line
|
|
echo "read=\"$line\""
|
|
else
|
|
cat /proc/meminfo
|
|
fi
|
|
|
|
echo "done"
|
|
|
|
exit 0
|
|
|