Subject: Telnetd and bash
From: [email-masked] (Sergey Okhapkin)

11 Jul 1997 01:01:16 -0700
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <01BC8DE1.1386F160.cygnus.gnu-win32@sos>
Original-To: "'gnu-win32'" <[email-masked]>
Encoding: 25 TEXT
Original-Sender: [email-masked]

Hi!

I have a troubles with porting telnetd to cygwin. Telnetd starts bash, but bash hangs.
Bash 2.01 sources (file jobs.c, lines starting with 2531) have the following code:

      while ((terminal_pgrp = tcgetpgrp (shell_tty)) != -1)
	{
	  if (shell_pgrp != terminal_pgrp)
	    {
	      SigHandler *old_ttin;

	      old_ttin = set_signal_handler(SIGTTIN, SIG_DFL);
	      kill (0, SIGTTIN);
	      set_signal_handler (SIGTTIN, old_ttin);
	      continue;
	    }
	  break;
	}

What the code does?

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".