I am trying to use a Ruby gem called shotgun that requires fork(2) command which I discovered is aa Linux command, and might be available in Cygwin. Is it possible to make it available through Windows command shell?
Running fork(2) from Windows with Cygwin. Possible?
2.5k Views Asked by picardo At
1
There are 1 best solutions below
Related Questions in WINDOWS
- IronAHK error not working with AutoHotKey script
- Auothotkey: Remove string, placement string in subject box
- Too many mistakes: String not correct _1 ; Controlsend?
- Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering
- AutoHotKey's %0% (number of command line arguments) produces inconsitent results
- How to remove button border style?
- How can others connect on my AHKsocket winsock server? External IP?
- AutoHotkey script triggered by Shift + g + AppsKey
- AutoHotkey SendInput Problems
- AUTOHOTKEY: RegExMatch() a series of numbers and letters
Related Questions in RUBY
- IronAHK error not working with AutoHotKey script
- Auothotkey: Remove string, placement string in subject box
- Too many mistakes: String not correct _1 ; Controlsend?
- Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering
- AutoHotKey's %0% (number of command line arguments) produces inconsitent results
- How to remove button border style?
- How can others connect on my AHKsocket winsock server? External IP?
- AutoHotkey script triggered by Shift + g + AppsKey
- AutoHotkey SendInput Problems
- AUTOHOTKEY: RegExMatch() a series of numbers and letters
Related Questions in LINUX
- IronAHK error not working with AutoHotKey script
- Auothotkey: Remove string, placement string in subject box
- Too many mistakes: String not correct _1 ; Controlsend?
- Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering
- AutoHotKey's %0% (number of command line arguments) produces inconsitent results
- How to remove button border style?
- How can others connect on my AHKsocket winsock server? External IP?
- AutoHotkey script triggered by Shift + g + AppsKey
- AutoHotkey SendInput Problems
- AUTOHOTKEY: RegExMatch() a series of numbers and letters
Related Questions in CYGWIN
- IronAHK error not working with AutoHotKey script
- Auothotkey: Remove string, placement string in subject box
- Too many mistakes: String not correct _1 ; Controlsend?
- Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering
- AutoHotKey's %0% (number of command line arguments) produces inconsitent results
- How to remove button border style?
- How can others connect on my AHKsocket winsock server? External IP?
- AutoHotkey script triggered by Shift + g + AppsKey
- AutoHotkey SendInput Problems
- AUTOHOTKEY: RegExMatch() a series of numbers and letters
Related Questions in SHOTGUN
- IronAHK error not working with AutoHotKey script
- Auothotkey: Remove string, placement string in subject box
- Too many mistakes: String not correct _1 ; Controlsend?
- Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering
- AutoHotKey's %0% (number of command line arguments) produces inconsitent results
- How to remove button border style?
- How can others connect on my AHKsocket winsock server? External IP?
- AutoHotkey script triggered by Shift + g + AppsKey
- AutoHotkey SendInput Problems
- AUTOHOTKEY: RegExMatch() a series of numbers and letters
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
fork(2)
is kludgey under Cygwin, as the Windows process model does not easily allow it to happen. Cygwin may allow its spawn to use it, but you're going to suffer a serious performance hit as Cygwin has to emulate everything by hand -- including copying the executable data, copying the open handles, etc.Depending on how much shotgun uses
fork(2)
, this emulation could be painful or it could be relatively minor.Here's a good thread on GameDev.net discussing the lack of a
fork
facility on Win32. They bring up something which I don't have the patience or platform accessibility to investigate, but certainly sounds fun, dangerous, and explosive all at the same time:I'm intrigued, but I doubt Cygwin uses it. It's probably there, to reiterate my answer to your question -- a lot of Unix apps rely on
fork
, and Cygwin likely makes it available. Just don't expect miracles, and you'll have to make Ruby aware of Cygwin by recompiling it to include its emulation layer.