You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Mark Hammond (JIRA)" <ji...@apache.org> on 2009/06/03 08:44:07 UTC

[jira] Created: (COUCHDB-374) couchspawnkillable doesn't work on windows

couchspawnkillable doesn't work on windows
------------------------------------------

                 Key: COUCHDB-374
                 URL: https://issues.apache.org/jira/browse/COUCHDB-374
             Project: CouchDB
          Issue Type: Bug
         Environment: windows
            Reporter: Mark Hammond
         Attachments: couchspawnkillable_win.c

The shell script 'couchspawnkillable' doesn't work on windows, meaning lots of things are broken in the trunk.  It might be possible to bash cygwin/msys etc to work, but I think a better solution for windows is a custom little C app which does the same basic thing.

I've attached the source for such an app and it works for me.  It creates a suspended child process with the same handles as us, then echos the 'kill' command, then spawns the real app and terminates.  The 'kill command' is a reference to the same couchspawnkillable.exe but with a '--kill' command-line.  I've not tried to integrate with a build system, but simple instructions are at the top of the file.

Attaching it here so it doesn't get lost...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-374) couchspawnkillable doesn't work on windows

Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hammond updated COUCHDB-374:
---------------------------------

    Attachment: couchspawnkillable_win.c

a win32 native couchspawnkillable.exe

> couchspawnkillable doesn't work on windows
> ------------------------------------------
>
>                 Key: COUCHDB-374
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-374
>             Project: CouchDB
>          Issue Type: Bug
>         Environment: windows
>            Reporter: Mark Hammond
>         Attachments: couchspawnkillable_win.c
>
>
> The shell script 'couchspawnkillable' doesn't work on windows, meaning lots of things are broken in the trunk.  It might be possible to bash cygwin/msys etc to work, but I think a better solution for windows is a custom little C app which does the same basic thing.
> I've attached the source for such an app and it works for me.  It creates a suspended child process with the same handles as us, then echos the 'kill' command, then spawns the real app and terminates.  The 'kill command' is a reference to the same couchspawnkillable.exe but with a '--kill' command-line.  I've not tried to integrate with a build system, but simple instructions are at the top of the file.
> Attaching it here so it doesn't get lost...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-374) couchspawnkillable doesn't work on windows

Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hammond updated COUCHDB-374:
---------------------------------

    Attachment: couchspawnkillable_win.c

Added apache license, updated comments...

> couchspawnkillable doesn't work on windows
> ------------------------------------------
>
>                 Key: COUCHDB-374
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-374
>             Project: CouchDB
>          Issue Type: Bug
>         Environment: windows
>            Reporter: Mark Hammond
>         Attachments: couchspawnkillable_win.c, couchspawnkillable_win.c
>
>
> The shell script 'couchspawnkillable' doesn't work on windows, meaning lots of things are broken in the trunk.  It might be possible to bash cygwin/msys etc to work, but I think a better solution for windows is a custom little C app which does the same basic thing.
> I've attached the source for such an app and it works for me.  It creates a suspended child process with the same handles as us, then echos the 'kill' command, then spawns the real app and terminates.  The 'kill command' is a reference to the same couchspawnkillable.exe but with a '--kill' command-line.  I've not tried to integrate with a build system, but simple instructions are at the top of the file.
> Attaching it here so it doesn't get lost...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (COUCHDB-374) couchspawnkillable doesn't work on windows

Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hammond resolved COUCHDB-374.
----------------------------------

    Resolution: Incomplete

Now incorporated as a complete patch in COUCHDB-406

> couchspawnkillable doesn't work on windows
> ------------------------------------------
>
>                 Key: COUCHDB-374
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-374
>             Project: CouchDB
>          Issue Type: Bug
>         Environment: windows
>            Reporter: Mark Hammond
>         Attachments: couchspawnkillable_win.c
>
>
> The shell script 'couchspawnkillable' doesn't work on windows, meaning lots of things are broken in the trunk.  It might be possible to bash cygwin/msys etc to work, but I think a better solution for windows is a custom little C app which does the same basic thing.
> I've attached the source for such an app and it works for me.  It creates a suspended child process with the same handles as us, then echos the 'kill' command, then spawns the real app and terminates.  The 'kill command' is a reference to the same couchspawnkillable.exe but with a '--kill' command-line.  I've not tried to integrate with a build system, but simple instructions are at the top of the file.
> Attaching it here so it doesn't get lost...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-374) couchspawnkillable doesn't work on windows

Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hammond updated COUCHDB-374:
---------------------------------

    Attachment: couchspawnkillable_win.c

I noticed that depending on how erlang itself is started, couchspawnkillable may not have a valid stderr, so would fail.  This new version only considers failure to duplicate stdin and stdout fatal and ignores failure duplicating stderr.

> couchspawnkillable doesn't work on windows
> ------------------------------------------
>
>                 Key: COUCHDB-374
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-374
>             Project: CouchDB
>          Issue Type: Bug
>         Environment: windows
>            Reporter: Mark Hammond
>         Attachments: couchspawnkillable_win.c
>
>
> The shell script 'couchspawnkillable' doesn't work on windows, meaning lots of things are broken in the trunk.  It might be possible to bash cygwin/msys etc to work, but I think a better solution for windows is a custom little C app which does the same basic thing.
> I've attached the source for such an app and it works for me.  It creates a suspended child process with the same handles as us, then echos the 'kill' command, then spawns the real app and terminates.  The 'kill command' is a reference to the same couchspawnkillable.exe but with a '--kill' command-line.  I've not tried to integrate with a build system, but simple instructions are at the top of the file.
> Attaching it here so it doesn't get lost...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-374) couchspawnkillable doesn't work on windows

Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hammond updated COUCHDB-374:
---------------------------------

    Attachment:     (was: couchspawnkillable_win.c)

> couchspawnkillable doesn't work on windows
> ------------------------------------------
>
>                 Key: COUCHDB-374
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-374
>             Project: CouchDB
>          Issue Type: Bug
>         Environment: windows
>            Reporter: Mark Hammond
>         Attachments: couchspawnkillable_win.c
>
>
> The shell script 'couchspawnkillable' doesn't work on windows, meaning lots of things are broken in the trunk.  It might be possible to bash cygwin/msys etc to work, but I think a better solution for windows is a custom little C app which does the same basic thing.
> I've attached the source for such an app and it works for me.  It creates a suspended child process with the same handles as us, then echos the 'kill' command, then spawns the real app and terminates.  The 'kill command' is a reference to the same couchspawnkillable.exe but with a '--kill' command-line.  I've not tried to integrate with a build system, but simple instructions are at the top of the file.
> Attaching it here so it doesn't get lost...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.