Re: SSHD startup problem and suggested fix

2002-02-06 Thread Jettero Heller

*ponder*

I've been looking for a telnetd or an sshd that I could
use... did I miss something?  Where did you get them?

On Tue, Feb 05, 2002 at 04:20:19PM -0800, Benn Schreiber wrote:
 I had problems with sshd not starting up reliably as a service, after I
 installing cygwin on a new system.  I found that it was sometimes trying
 to start before the network was started, and didn't fare too well.
 
 So, I did a cygrunsrv --remove sshd
 
 and then did 
 
 cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd -y Browser -a
 -D -e CYGWIN=binmode ntsec tty
 
 This makes the sshd service dependent on the browser, which is dependent
 on the network being up.  Works great now!
 
 Benn Schreiber

-- 
If riding in an airplane is flying, then riding in a boat is swimming.
17 jumps from a c182.  Roughly 142 seconds of free fall.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




dll

2002-02-04 Thread Jettero Heller

I'm attempting to write a dll that gives some TCP support to
FoxPro.

FoxPro is pretty antiquated... it's been challenging. ;)


I got to a place where my dll loads up fine from a .exe, but
if foxpro tries to use it, it sagfaults:

VFP caused an invalid page fault in
module KERNEL32.DLL at 0167:bff7b9a6.

The line that causes the sagfault appeared to be a harmless
int sfd = socket() call.  *ponder*

I had done a few other cygwin1.dll calls (sprintf, strcpy,
and so on); and theorized that it had something to do with
the file handle.


I did a similar int fd = open() call.  It worked from my
.exe load of the .dll, but crashed with foxpro.



I believe the problem is that foxpro is linked against a
.dll that clashes with the cygwin1.dll ... or something
like that.


Any suggestions at all would be greatly appreciated.

-- 
If riding in an airplane is flying, then riding in a boat is swimming.
17 jumps from a c182.  Roughly 142 seconds of free fall.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/