Skip to content

Commit

Permalink
Specify isService behavior on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fbbdev committed Oct 18, 2016
1 parent 2f8b8d4 commit 300710c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ When a FastCGI service is started, the stdin descriptor (fd 0) [is replaced by a

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

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

```js
if (fcgi.isService()) {
Expand Down

0 comments on commit 300710c

Please sign in to comment.