Skip to content

Commit 300710c

Browse files
committed
Specify isService behavior on Windows
1 parent 2f8b8d4 commit 300710c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ When a FastCGI service is started, the stdin descriptor (fd 0) [is replaced by a
9898

9999
This is done automatically when you call the `listen` method on the server object without arguments, or with a callback as the only argument.
100100

101-
The `isService` function is provided to check if the current script is being run as a FastCGI service.
101+
The `isService` function is provided to check if the listen method can be
102+
called without arguments. **WARNING: The function always returns false on
103+
windows.** FastCGI services on Windows should obtain the stdin handle by
104+
calling `GetStdHandle(-10)` from `kernel32.dll`.
102105

103106
```js
104107
if (fcgi.isService()) {

0 commit comments

Comments
 (0)