OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

Cannot run mintty in administrator mode on windows 7 #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install mintty through cygwin 
2.Attempt to run mintty default cygwin shortcut in administrator mode

What is the expected output? What do you see instead?
I expect a normal bash shell prompt. Instead I get 

"Failed to create child process: Resource temporarily unavailable."

What version of the product are you using? On what operating system?
0.6.1 or 0.5.8 on Windows 7 (64 bit)

Please provide any additional information below.
The cygwin.bat file that loads bash directly in a standard window has no
problem being run as an administrator.  Therefore I have to assume the
fault lies in mintty somewhere. I love mintty too much though to just
accept the lousy windows window.  Please help.  I want to be able to run
commands like "net start sshd" which require the stupid admin mode.

Original issue reported on code.google.com by herrn...@gmail.com on 3 Apr 2010 at 12:34

GoogleCodeExporter commented 9 years ago
That message means Cygwin's fork() is failing. Nothing mintty can do about 
that. It's 
a common occurrence on Vista and 7, which is to do with Windows randomising the 
placement of DLLs in memory. The cure is 'rebaseall':

    1. shutdown all Cygwin processes and services
    2. start ash (do not use bash or rxvt)
    3. execute /bin/rebaseall (in the ash window)

See /usr/share/doc/Cygwin/rebase-3.0.1.README for lots more on that. If it 
doesn't 
help, an entry on the "Big List Of Dodgy Apps" could be to blame: 
http://cygwin.com/faq/faq.using.html#faq.using.bloda

Original comment by andy.koppe on 3 Apr 2010 at 6:03

GoogleCodeExporter commented 9 years ago
Ahh thanks for that info.  I felt kind bad accusing mintty, which is awesome by 
the
way, but it seemed to be the only part that was acting odd.  Your explanation 
also
solved a problem I was having with subversion.  Migrating to win7 has been less 
than
pleasant.  Non-functioning, unreliable cygwin would be something of a deal 
breaker
for me.  Windows needs sudo...

Original comment by herrn...@gmail.com on 4 Apr 2010 at 7:37

GoogleCodeExporter commented 9 years ago
No worries, I can see why that would have looked like a mintty issue. Perhaps I 
should 
put a pointer to rebaseall in the error message.

Original comment by andy.koppe on 4 Apr 2010 at 10:14

GoogleCodeExporter commented 9 years ago
That sounds like a good idea.  I've been using cygwin for years and never heard 
of or
had the need to use rebaseall.

Original comment by herrn...@gmail.com on 5 Apr 2010 at 6:06

GoogleCodeExporter commented 9 years ago
Added pointer to rebaseall in r823 on 0.6 branch.

Original comment by andy.koppe on 14 Apr 2010 at 5:24